Bump to v4.0.2.

This commit is contained in:
John-David Dalton
2016-01-24 22:41:24 -08:00
parent c033f79116
commit a9140d2c8f
545 changed files with 6999 additions and 2625 deletions

View File

@@ -1,4 +1,4 @@
# lodash.sumby v4.0.1
# lodash.sumby v4.0.2
The [lodash](https://lodash.com/) method `_.sumBy` exported as a [Node.js](https://nodejs.org/) module.
@@ -15,4 +15,4 @@ In Node.js:
var sumBy = require('lodash.sumby');
```
See the [documentation](https://lodash.com/docs#sumBy) or [package source](https://github.com/lodash/lodash/blob/4.0.1-npm-packages/lodash.sumby) for more details.
See the [documentation](https://lodash.com/docs#sumBy) or [package source](https://github.com/lodash/lodash/blob/4.0.2-npm-packages/lodash.sumby) for more details.

View File

@@ -1,5 +1,5 @@
/**
* lodash 4.0.1 (Custom Build) <https://lodash.com/>
* lodash 4.0.2 (Custom Build) <https://lodash.com/>
* Build: `lodash modularize exports="npm" -o ./`
* Copyright 2012-2016 The Dojo Foundation <http://dojofoundation.org/>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
@@ -49,7 +49,7 @@ function baseSum(array, iteratee) {
result = result === undefined ? current : (result + current);
}
}
return result;
return length ? result : 0;
}
/** Used for built-in method references. */
@@ -302,8 +302,6 @@ var isArray = Array.isArray;
* // => false
*/
function isObject(value) {
// Avoid a V8 JIT bug in Chrome 19-20.
// See https://code.google.com/p/v8/issues/detail?id=2291 for more details.
var type = typeof value;
return !!value && (type == 'object' || type == 'function');
}
@@ -460,7 +458,7 @@ function property(path) {
function sumBy(array, iteratee) {
return (array && array.length)
? baseSum(array, baseIteratee(iteratee))
: undefined;
: 0;
}
module.exports = sumBy;

View File

@@ -1,11 +1,11 @@
{
"name": "lodash.sumby",
"version": "4.0.1",
"version": "4.0.2",
"description": "The lodash method `_.sumBy` exported as a module.",
"homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg",
"license": "MIT",
"keywords": "lodash, lodash-modularized, stdlib, util, sumby",
"keywords": "lodash-modularized, sumby",
"author": "John-David Dalton <john.david.dalton@gmail.com> (http://allyoucanleet.com/)",
"contributors": [
"John-David Dalton <john.david.dalton@gmail.com> (http://allyoucanleet.com/)",