1.0.1 • Published 4 years ago
@ivanhanak_com/array-unique v1.0.1
array-unique
A lightweight javascript library to remove duplicates from an array.
Changelog
See the whole Changelog.
Install
Using npm:
npm install @ivanhanak_com/array-unique
Using yarn:
yarn add @ivanhanak_com/array-unique
Import
import arrayUnique from '@ivanhanak_com/array-unique';
Usage
The usage is pretty straightforward.
Just import the library and pass an array as a first argument.
const arr = ["ivan", "likes", "🐕", "🐕", "🐕"];
const uniqueValues = arrayUnique(arr); // => ["ivan", "likes", "🐕"];
Browser support
IE: 10+