Socket
Socket
Sign inDemoInstall

lodash.foreach

Package Overview
Dependencies
Maintainers
3
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lodash.foreach - npm Package Compare versions

Comparing version 4.2.0 to 4.3.0

10

index.js
/**
* lodash 4.2.0 (Custom Build) <https://lodash.com/>
* lodash (Custom Build) <https://lodash.com/>
* Build: `lodash modularize exports="npm" -o ./`

@@ -34,3 +34,3 @@ * Copyright jQuery Foundation and other contributors <https://jquery.org/>

/**
* Iterates over elements of `collection` invoking `iteratee` for each element.
* Iterates over elements of `collection` and invokes `iteratee` for each element.
* The iteratee is invoked with three arguments: (value, index|key, collection).

@@ -51,2 +51,3 @@ * Iteratee functions may exit iteration early by explicitly returning `false`.

* @returns {Array|Object} Returns `collection`.
* @see _.forEachRight
* @example

@@ -65,5 +66,4 @@ *

function forEach(collection, iteratee) {
return (typeof iteratee == 'function' && isArray(collection))
? arrayEach(collection, iteratee)
: baseEach(collection, baseIteratee(iteratee));
var func = isArray(collection) ? arrayEach : baseEach;
return func(collection, baseIteratee(iteratee, 3));
}

@@ -70,0 +70,0 @@

{
"name": "lodash.foreach",
"version": "4.2.0",
"version": "4.3.0",
"description": "The lodash method `_.forEach` exported as a module.",

@@ -19,4 +19,4 @@ "homepage": "https://lodash.com/",

"lodash._baseeach": "~4.1.0",
"lodash._baseiteratee": "~4.6.0"
"lodash._baseiteratee": "~4.7.0"
}
}

@@ -1,2 +0,2 @@

# lodash.foreach v4.2.0
# lodash.foreach v4.3.0

@@ -18,2 +18,2 @@ The [lodash](https://lodash.com/) method `_.forEach` exported as a [Node.js](https://nodejs.org/) module.

See the [documentation](https://lodash.com/docs#forEach) or [package source](https://github.com/lodash/lodash/blob/4.2.0-npm-packages/lodash.foreach) for more details.
See the [documentation](https://lodash.com/docs#forEach) or [package source](https://github.com/lodash/lodash/blob/4.3.0-npm-packages/lodash.foreach) for more details.
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc