node package manager

arr-include

Include only certain items in an array

arr-include Build Status

Include only certain items in an array

Install

$ npm install --save arr-include

Usage

var arrInclude = require('arr-include');
 
arrInclude(['a', 'b', 'c'], ['b', 'x']);
//=> ['b'] 

Related

License

MIT © Sindre Sorhus