Gazebo_simulation-Frontend/node_modules/arr-diff
Riddhi Dave c586e2ed33 session update with django backend 2021-02-25 10:57:52 -05:00
..
LICENSE React files 2020-12-21 10:29:31 -05:00
README.md React files 2020-12-21 10:29:31 -05:00
index.js React files 2020-12-21 10:29:31 -05:00
package.json session update with django backend 2021-02-25 10:57:52 -05:00

README.md

arr-diff NPM version Build Status

Returns an array with only the unique values from the first array, by excluding all values from additional arrays using strict equality for comparisons.

Install

Install with npm

$ npm i arr-diff --save

Install with bower

$ bower install arr-diff --save

API

diff

Return the difference between the first array and additional arrays.

Params

  • a {Array}
  • b {Array}
  • returns {Array}

Example

var diff = require('arr-diff');

var a = ['a', 'b', 'c', 'd'];
var b = ['b', 'c'];

console.log(diff(a, b))
//=> ['a', 'd']

Running tests

Install dev dependencies:

$ npm i -d && npm test

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.

Author

Jon Schlinkert

License

Copyright © 2015 Jon Schlinkert Released under the MIT license.


This file was generated by verb on Sat Dec 05 2015 23:24:53 GMT-0500 (EST).