JSPM

array-multi-find

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 296
  • Score
    100M100P100Q89313F
  • License MIT

Find multiple elements in an array

Package Exports

  • array-multi-find

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-multi-find) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

array-multi-find Build Status

Find multiple elements in an array

Install

$ npm install --save array-multi-find

Usage

const multiFind = require('array-multi-find');

multiFind(['foo', 'bar'], ['baz']);
//=> []

multiFind(['foo', 'bar'], ['foo', 'baz']);
//=> ['foo']

multiFind(['foo', 'bar', 'baz'], ['foo', 'bar']);
//=> ['foo', 'bar']

API

multiFind(array, elements)

array

Type: Array

Array to search in.

elements

Type: Array

Elements to search in the array.

License

MIT © Sam Verschueren