Socket
Socket
Sign inDemoInstall

lodash.uniq

Package Overview
Dependencies
0
Maintainers
3
Versions
22
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

lodash.uniq

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


Version published
Maintainers
3
Weekly downloads
12,095,355
decreased by-17.65%
Install size
25.5 kB

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

Last updated on 13 Aug 2016

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc