array-complement

    0.0.1 • Public • Published

    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

    Install

    npm i array-complement

    DownloadsWeekly Downloads

    2

    Version

    0.0.1

    License

    MIT

    Last publish

    Collaborators

    • miguelmota