Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Compute the difference between input arrays
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
src
test Add testling information
.gitignore Initial commit
LICENSE-MIT
Makefile Initial commit
README.md Impvoe readme
package.json Move source file

README.md

Array Difference

browser support

Utility method to compute the difference between two arrays. AMD and CommonJS compatible; works in Node.js and the browser.

Installation

$ npm install array-difference

Usage

var array1 = [1, 2, 3];
var array2 = [2, 3, 4];
difference(array1, array2); // yeilds [1, 4]

License

Copyright (c) 2013 Mike Pennisi
Licensed under the MIT Expat license.

Something went wrong with that request. Please try again.