1.0.0 • Published 3 years ago

unq-arr v1.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

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)

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