unq-arr
v1.0.0
Published
Simple package to remove duplicates elements in arrays
Downloads
8
Maintainers
Readme
unq-arr
Simple package to remove duplicates elements in arrays
Installation
using npm
npm i unq-arrusing yarn
yarn add unq-arrUsage
const { unique } = require('unq-arr');const arr = unique([🍉,🍉,🍇,🍇,🍓])
console.log(arr)
// 🍉,🍇,🍓also in nested arrays
const arr = unique([[🍉,🍉,🍇],[🍇,🍓,🫐,🍈],🍒])
console.log(arr)
// 🍉,🍇,🍓,🫐,🍈,🍒