unq-arr
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

unq-arr

Simple package to remove duplicates elements in arrays

Installation

using npm

npm i unq-arr

using yarn

yarn add unq-arr

Usage

const { unique } = require('unq-arr');
const arr = unique([🍉,🍉,🍇,🍇,🍓])

console.log(arr)

//  🍉,🍇,🍓

also in nested arrays

const arr = unique([[🍉,🍉,🍇],[🍇,🍓,🫐,🍈],🍒])

console.log(arr)

//  🍉,🍇,🍓,🫐,🍈,🍒

Dependencies (0)

    Dev Dependencies (7)

    Package Sidebar

    Install

    npm i unq-arr

    Weekly Downloads

    2

    Version

    1.0.0

    License

    ISC

    Unpacked Size

    1.96 kB

    Total Files

    4

    Last publish

    Collaborators

    • madkour17