Socket
Socket
Sign inDemoInstall

lodash.pullall

Package Overview
Dependencies
0
Maintainers
3
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

lodash.pullall


Version published
Weekly downloads
209K
decreased by-15.59%
Maintainers
3
Created
Weekly downloads
 

Package description

What is lodash.pullall?

The lodash.pullall package is a utility function from the Lodash library that allows you to remove all instances of specified values from an array. It is particularly useful for array manipulation tasks where you need to filter out certain elements.

What are lodash.pullall's main functionalities?

Remove specified values from an array

This feature allows you to remove all instances of specified values from an array. In the example, the values 2, 4, and 6 are removed from the array [1, 2, 3, 4, 5, 6], resulting in [1, 3, 5].

const _ = require('lodash.pullall');
let array = [1, 2, 3, 4, 5, 6];
let valuesToRemove = [2, 4, 6];
_.pullAll(array, valuesToRemove);
console.log(array); // Output: [1, 3, 5]

Other packages similar to lodash.pullall

Readme

Source

lodash.pullall v4.2.0

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

Installation

Using npm:

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

In Node.js:

var pullAll = require('lodash.pullall');

See the documentation or package source for more details.

Keywords

FAQs

Last updated on 25 Jul 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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc