Bump to v3.1.1.

This commit is contained in:
jdalton
2015-02-04 20:53:49 -08:00
committed by John-David Dalton
parent 27d65e814a
commit 971ec866a8
208 changed files with 1053 additions and 846 deletions

View File

@@ -1,4 +1,4 @@
# lodash.reduce v3.1.0
# lodash.reduce v3.1.1
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodashs](https://lodash.com/) `_.reduce` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.
@@ -17,4 +17,4 @@ In Node.js/io.js:
var reduce = require('lodash.reduce');
```
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.

View File

@@ -1,8 +1,8 @@
/**
* 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
* Available under MIT license <https://lodash.com/license>
*/
@@ -48,7 +48,7 @@ function arrayReduce(array, iteratee, accumulator, initFromArray) {
function createReduce(arrayFunc, eachFunc) {
return function(collection, iteratee, accumulator, thisArg) {
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)
: baseReduce(collection, baseCallback(iteratee, thisArg, 4), accumulator, initFromArray, eachFunc);
};
@@ -62,7 +62,7 @@ function createReduce(arrayFunc, eachFunc) {
* value. The `iteratee` is bound to `thisArg` and invoked with four arguments:
* (accumulator, value, index|key, collection).
*
* Many lodash methods are guarded to work as interatees for methods like
* Many lodash methods are guarded to work as iteratees for methods like
* `_.reduce`, `_.reduceRight`, and `_.transform`.
*
* The guarded methods are:
@@ -79,8 +79,8 @@ function createReduce(arrayFunc, eachFunc) {
* @returns {*} Returns the accumulated value.
* @example
*
* _.reduce([1, 2], function(sum, n) {
* return sum + n;
* _.reduce([1, 2], function(total, n) {
* return total + n;
* });
* // => 3
*

View File

@@ -1,6 +1,6 @@
{
"name": "lodash.reduce",
"version": "3.1.0",
"version": "3.1.1",
"description": "The modern build of lodashs `_.reduce` as a module.",
"homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg",