🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

array-complement

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

array-complement

Returns an array of unique values that is the symmetric difference of the provided arrays.

0.0.1
latest
Source
npm
Version published
Maintainers
1
Created
Source

array-complement

Returns an array of unique values that is the symmetric difference of the provided arrays.

Install

npm install array-complement
bower install array-complement

Usage

const arrayComplement = require('array-complement');

console.log(arrayComplement(['foo','bar'], ['bar'])); // ['foo']
console.log(arrayComplement(['foo','bar','qux'],['qux','baz'],['thud','norf','bar'])); // ['foo','baz','thud','norf']

Test

npm test

License

MIT

Keywords

array

FAQs

Package last updated on 23 Oct 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts