You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

lodash.uniq

Package Overview
Dependencies
Maintainers
3
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lodash.uniq

The lodash method `_.uniq` exported as a module.


Version published
Weekly downloads
12M
decreased by-18.98%
Maintainers
3
Install size
25.5 kB
Created
Weekly downloads
 

Package description

What is lodash.uniq?

The lodash.uniq package is a utility function from the Lodash library that creates a duplicate-free version of an array, using SameValueZero for equality comparisons. It can be used to filter out duplicate values from an array to ensure that each value is unique.

What are lodash.uniq's main functionalities?

Removing duplicates from an array

This code sample demonstrates how to use lodash.uniq to remove duplicate numbers from an array, resulting in an array of unique numbers.

[1, 2, 2, 3].filter(_.uniq)

Other packages similar to lodash.uniq

Readme

Source

lodash.uniq v4.5.0

The lodash method _.uniq exported as a Node.js module.

Installation

Using npm:

$ {sudo -H} npm i -g npm
$ npm i --save lodash.uniq

In Node.js:

var uniq = require('lodash.uniq');

See the documentation or package source for more details.

Keywords

FAQs

Package last updated on 13 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc