
Product
Reachability for Ruby Now in Beta
Reachability analysis for Ruby is now in beta, helping teams identify which vulnerabilities are truly exploitable in their applications.
array-difference-linear
Advanced tools
Given array a and array b, returns a - b, all in linear time!
This requires node 4.x, as there are ES6 features added
array-difference takes two arguments, both of which must be arrays, and then returns an array of the difference
const arrayDifference = require('array-difference');
const a = [1,2,3];
const b = [2, 3, 4];
arrayDifference(a, b);
// -> [1]
FAQs
Given array a and array b, returns a - b
We found that array-difference-linear 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 for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Reachability analysis for Ruby is now in beta, helping teams identify which vulnerabilities are truly exploitable in their applications.

Research
/Security News
Malicious npm packages use Adspect cloaking and fake CAPTCHAs to fingerprint visitors and redirect victims to crypto-themed scam sites.

Security News
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.