array-difference

Utility method for finding the difference between arrays

MIT 2 个版本
安装
npm install array-difference
yarn add array-difference
pnpm add array-difference
bun add array-difference
README

Array Difference

browser support

Utility method to compute the difference between two arrays. AMD and CommonJS compatible; works in Node.js and the browser.

Installation

$ npm install array-difference

Usage

var array1 = [1, 2, 3];
var array2 = [2, 3, 4];
difference(array1, array2); // yeilds [1, 4]

License

Copyright (c) 2013 Mike Pennisi
Licensed under the MIT Expat license.

版本列表
0.0.2 2020-08-30
0.0.1 2013-08-01