lodash.foreach
Advanced tools
Comparing version 3.0.2 to 3.0.3
10
index.js
/** | ||
* lodash 3.0.2 (Custom Build) <https://lodash.com/> | ||
* lodash 3.0.3 (Custom Build) <https://lodash.com/> | ||
* Build: `lodash modern modularize exports="npm" -o ./` | ||
* Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/> | ||
* Based on Underscore.js 1.8.2 <http://underscorejs.org/LICENSE> | ||
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE> | ||
* Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors | ||
@@ -24,3 +24,3 @@ * Available under MIT license <https://lodash.com/license> | ||
return function(collection, iteratee, thisArg) { | ||
return (typeof iteratee == 'function' && typeof thisArg == 'undefined' && isArray(collection)) | ||
return (typeof iteratee == 'function' && thisArg === undefined && isArray(collection)) | ||
? arrayFunc(collection, iteratee) | ||
@@ -34,6 +34,6 @@ : eachFunc(collection, bindCallback(iteratee, thisArg, 3)); | ||
* The `iteratee` is bound to `thisArg` and invoked with three arguments: | ||
* (value, index|key, collection). Iterator functions may exit iteration early | ||
* (value, index|key, collection). Iteratee functions may exit iteration early | ||
* by explicitly returning `false`. | ||
* | ||
* **Note:** As with other "Collections" methods, objects with a `length` property | ||
* **Note:** As with other "Collections" methods, objects with a "length" property | ||
* are iterated like arrays. To avoid this behavior `_.forIn` or `_.forOwn` | ||
@@ -40,0 +40,0 @@ * may be used for object iteration. |
{ | ||
"name": "lodash.foreach", | ||
"version": "3.0.2", | ||
"version": "3.0.3", | ||
"description": "The modern build of lodash’s `_.forEach` as a module.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://lodash.com/", |
@@ -1,2 +0,2 @@ | ||
# lodash.foreach v3.0.2 | ||
# lodash.foreach v3.0.3 | ||
@@ -20,2 +20,2 @@ The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.forEach` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. | ||
See the [documentation](https://lodash.com/docs#forEach) or [package source](https://github.com/lodash/lodash/blob/3.0.2-npm-packages/lodash.foreach) for more details. | ||
See the [documentation](https://lodash.com/docs#forEach) or [package source](https://github.com/lodash/lodash/blob/3.0.3-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
5251