node package manager
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org ยป



Calculate the difference of two arrays

browser support

npm install difference

simple api

difference = require('difference');

difference(arrA, arrB);

// Important notes.

[1] is the same as ['1'] for now. This was meant to be the simplest and fastest way of calculating difference between two arrays.


//output = [1,2,4,5];