
Research
/Security News
Coruna Respawned: Compromised art-template npm Package Leads to iOS Browser Exploit Kit
Compromised npm package art-template delivered a Coruna-like iOS Safari exploit framework through a watering-hole attack.
@extra-array/intersection
Advanced tools
Gives values present in both arrays. :running: :vhs: :package: :moon:
Alternatives: compare, map.
This is part of package extra-array.
array.intersection(x, y, [fn]);
// x: an array
// y: another array
// fn: compare function (a, b)
const array = require('extra-array');
var x = [1, 2, 3, 4];
array.intersection(x, [2, 3, 5]);
// [2, 3]
array.intersection(x, [-2, -3, -5], (a, b) => Math.abs(a) - Math.abs(b));
// [2, 3]
FAQs
Gives values present in both arrays.
The npm package @extra-array/intersection receives a total of 55 weekly downloads. As such, @extra-array/intersection popularity was classified as not popular.
We found that @extra-array/intersection 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.

Research
/Security News
Compromised npm package art-template delivered a Coruna-like iOS Safari exploit framework through a watering-hole attack.

Company News
As AI accelerates how code is written and shipped, Socket is scaling to protect the software supply chain from the growing wave of attacks targeting open source dependencies.

Company News
Socket is scaling to defend open source against supply chain attacks as AI accelerates software development.