This is a
playground to test code. It runs a full
Node.js environment and already has all of
npm’s 400,000 packages pre-installed, including
array-differ with all
npm packages installed. Try it out:
This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.
Create an array with values that are present in the first input array but not additional ones
$ npm install array-differ
const arrayDiffer = require('array-differ'); arrayDiffer([2, 3, 4], [3, 50]); //=> [2, 4]
Returns a new array.
Arrays of values to exclude.
MIT © Sindre Sorhus