📅 You're Invited: Meet the Socket team at RSAC (April 28 – May 1).RSVP
Socket
Sign inDemoInstall
Socket

array-unique

Package Overview
Dependencies
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

array-unique

Remove duplicate values from an array. Fastest ES5 implementation.

0.3.2
latest
Source
npm
Version published
Weekly downloads
13M
-2.75%
Maintainers
2
Weekly downloads
 
Created

What is array-unique?

The array-unique npm package is a small utility that removes duplicate values from an array. It is useful when you need to ensure that an array contains only unique items without having to write custom deduplication logic.

What are array-unique's main functionalities?

Deduplicate an array

This feature allows you to remove duplicate values from an array, resulting in an array of only unique items. The `arrayUnique` function is used as a callback for the `filter` method.

[1, 2, 2, 3, 4, 4, 5, 5].filter(arrayUnique)

Other packages similar to array-unique

Keywords

array

FAQs

Package last updated on 01 Aug 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts