difference
Version:
Calculate the difference of two arrays
27 lines (13 loc) • 506 B
Markdown
difference
==========
Calculate the difference of two arrays
[](https://ci.testling.com/miketheprogrammer/difference)
npm install difference
simple api
difference = require('difference');
difference(arrA, arrB);
// Important notes.
[] is the same as ['1'] for now.
This was meant to be the simplest and fastest way of calculating difference between two arrays.
difference([1,2,'3'],[3,4,5])
//output = [1,2,4,5];