difference
Advanced tools
Weekly downloads
Readme
Calculate the difference of two arrays
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.
difference([1,2,'3'],[3,4,5])
//output = [1,2,4,5];
FAQs
Calculate the difference of two arrays
The npm package difference receives a total of 291 weekly downloads. As such, difference popularity was classified as not popular.
We found that difference demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.