array-unique-deep

    1.0.1 • Public • Published

    array-unique-deep

    Remove duplicate values from an array deeply

    Install

    Install with npm:

    $ npm install --save array-unique-deep

    Usage

    const unique = require('array-unique-deep');
     
    const arr = ['a', 'b', 'c', 'c'];
    console.log(unique(arr)) //=> ['a', 'b', 'c']
    console.log(arr)         //=> ['a', 'b', 'c','c']
     
    const objArr = [{'name':'izqcool'},{'name':'izqcool1'},{'name':'izqcool'}];
    console.log(unique(objArr)) //=> [{'name':'izqcool'},{'name':'izqcool1'}]
    console.log(objArr)         //=> [{'name':'izqcool'},{'name':'izqcool1'},{'name':'izqcool'}]

    Author

    Install

    npm i array-unique-deep

    DownloadsWeekly Downloads

    2

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    15.6 kB

    Total Files

    6

    Last publish

    Collaborators

    • izqcool