lodash.foreach
Advanced tools
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. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5917
+ Addedlodash._baseiteratee@4.7.0(transitive)
+ Addedlodash._basetostring@4.12.0(transitive)
+ Addedlodash._stringtopath@4.8.0(transitive)
- Removedlodash._baseiteratee@4.6.1(transitive)
- Removedlodash._stringtopath@4.7.1(transitive)
Updatedlodash._baseiteratee@~4.7.0