unq-arr
v1.0.0
Published
Simple package to remove duplicates elements in arrays
Downloads
10
Maintainers
Readme
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)
// 🍉,🍇,🍓,🫐,🍈,🍒