just-intersect
TypeScript icon, indicating that this package has built-in type declarations

4.3.0 • Public • Published

just-intersect

Part of a library of zero-dependency npm modules that do just do one thing. Guilt-free utilities for every occasion.

🍦 Try it

npm install just-intersect
yarn add just-intersect

Return the intersect of two arrays

import intersect from 'just-intersect';

intersect([1, 2, 5, 6], [2, 3, 5, 6]); // [2, 5, 6]
intersect([1, 2, 2, 4, 5], [3, 2, 2, 5, 7]); // [2, 5]  

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
4.3.04,692latest

Version History

VersionDownloads (Last 7 Days)Published
4.3.04,692
4.2.12
4.2.00
4.1.01
4.0.20
4.0.10
4.0.00
3.4.1470
3.4.00
3.3.00
3.2.056
3.1.038
3.0.01
2.0.00
1.1.220
1.1.210
1.1.200
1.1.190
1.1.180
1.1.170

Package Sidebar

Install

npm i just-intersect

Weekly Downloads

3,676

Version

4.3.0

License

MIT

Unpacked Size

5.58 kB

Total Files

9

Last publish

Collaborators

  • angus-c