JSPM

array-intersection

0.1.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 18348
  • Score
    100M100P100Q133476F
  • License

Return an array with the unique values present in _all_ given arrays using strict equality for comparisons.

Package Exports

  • array-intersection

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (array-intersection) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

array-intersection NPM version

Return an array with the unique values present in all given arrays using strict equality for comparisons.

Based on mout's implementation of intersection.

Install with npm

npm i array-intersection --save

Install with bower

bower install array-intersection --save

Usage

var intersection = require('array-intersection');

intersection(['a', 'a', 'c'])
//=> ['a', 'c']

intersection(['a', 'b', 'c'], ['b', 'c', 'e'])
//=> ['b', 'c']

intersection(['a', 'b', 'c'], ['b', 'c', 'e'], ['b', 'c', 'e'])
//=> ['b', 'c']

Run tests

npm test

Author

Jon Schlinkert

License

Copyright (c) 2014 Jon Schlinkert
Released under the MIT license


This file was generated by verb on December 12, 2014. To update, run npm i -g verb && verb.