node package manager
Orgs are free. Discover, share, and reuse code in your team. 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];