lodash.reduce
Advanced tools
Comparing version 3.1.0 to 3.1.1
10
index.js
/** | ||
* lodash 3.1.0 (Custom Build) <https://lodash.com/> | ||
* lodash 3.1.1 (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 | ||
@@ -51,3 +51,3 @@ * Available under MIT license <https://lodash.com/license> | ||
var initFromArray = arguments.length < 3; | ||
return (typeof iteratee == 'function' && typeof thisArg == 'undefined' && isArray(collection)) | ||
return (typeof iteratee == 'function' && thisArg === undefined && isArray(collection)) | ||
? arrayFunc(collection, iteratee, accumulator, initFromArray) | ||
@@ -83,4 +83,4 @@ : baseReduce(collection, baseCallback(iteratee, thisArg, 4), accumulator, initFromArray, eachFunc); | ||
* | ||
* _.reduce([1, 2], function(sum, n) { | ||
* return sum + n; | ||
* _.reduce([1, 2], function(total, n) { | ||
* return total + n; | ||
* }); | ||
@@ -87,0 +87,0 @@ * // => 3 |
{ | ||
"name": "lodash.reduce", | ||
"version": "3.1.0", | ||
"version": "3.1.1", | ||
"description": "The modern build of lodash’s `_.reduce` as a module.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://lodash.com/", |
@@ -1,2 +0,2 @@ | ||
# lodash.reduce v3.1.0 | ||
# lodash.reduce v3.1.1 | ||
@@ -20,2 +20,2 @@ The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.reduce` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. | ||
See the [documentation](https://lodash.com/docs#reduce) or [package source](https://github.com/lodash/lodash/blob/3.1.0-npm-packages/lodash.reduce) for more details. | ||
See the [documentation](https://lodash.com/docs#reduce) or [package source](https://github.com/lodash/lodash/blob/3.1.1-npm-packages/lodash.reduce) 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
6393