diff --git a/README.md b/README.md
index 66a6a5ff5..9982722b8 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-# lodash v3.4.1
+# lodash v3.4.2
The [lodash](https://lodash.com/) library exported as [npm packages](https://www.npmjs.com/browse/keyword/lodash-modularized) per method.
diff --git a/lodash.add/LICENSE.txt b/lodash.add/LICENSE
similarity index 89%
rename from lodash.add/LICENSE.txt
rename to lodash.add/LICENSE
index 9cd87e5dc..b054ca5a3 100644
--- a/lodash.add/LICENSE.txt
+++ b/lodash.add/LICENSE
@@ -1,5 +1,5 @@
-Copyright 2012-2015 The Dojo Foundation
-Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas,
+Copyright 2012-2016 The Dojo Foundation
+Based on Underscore.js, copyright 2009-2016 Jeremy Ashkenas,
DocumentCloud and Investigative Reporters & Editors
Permission is hereby granted, free of charge, to any person obtaining
diff --git a/lodash.add/README.md b/lodash.add/README.md
index 7595fdce0..2858abe3f 100644
--- a/lodash.add/README.md
+++ b/lodash.add/README.md
@@ -1,20 +1,18 @@
-# lodash.add v3.4.1
+# lodash.add v3.4.2
-The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.add` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.
+The [lodash](https://lodash.com/) method `_.add` exported as a [Node.js](https://nodejs.org/) module.
## Installation
Using npm:
-
```bash
$ {sudo -H} npm i -g npm
$ npm i --save lodash.add
```
-In Node.js/io.js:
-
+In Node.js:
```js
var add = require('lodash.add');
```
-See the [documentation](https://lodash.com/docs#add) or [package source](https://github.com/lodash/lodash/blob/3.4.1-npm-packages/lodash.add) for more details.
+See the [documentation](https://lodash.com/docs#add) or [package source](https://github.com/lodash/lodash/blob/3.4.2-npm-packages/lodash.add) for more details.
diff --git a/lodash.add/index.js b/lodash.add/index.js
index abcefc9e7..f881b6976 100644
--- a/lodash.add/index.js
+++ b/lodash.add/index.js
@@ -1,9 +1,9 @@
/**
- * lodash 3.4.1 (Custom Build)
- * Build: `lodash modern modularize exports="npm" -o ./`
- * Copyright 2012-2015 The Dojo Foundation
+ * lodash 3.4.2 (Custom Build)
+ * Build: `lodash modularize exports="npm" -o ./`
+ * Copyright 2012-2016 The Dojo Foundation
* Based on Underscore.js 1.8.3
- * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
+ * Copyright 2009-2016 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
* Available under MIT license
*/
@@ -13,16 +13,23 @@
* @static
* @memberOf _
* @category Math
- * @param {number} augend The first number to add.
- * @param {number} addend The second number to add.
- * @returns {number} Returns the sum.
+ * @param {number} augend The first number in an addition.
+ * @param {number} addend The second number in an addition.
+ * @returns {number} Returns the total.
* @example
*
* _.add(6, 4);
* // => 10
*/
function add(augend, addend) {
- return (+augend || 0) + (+addend || 0);
+ var result;
+ if (augend !== undefined) {
+ result = augend;
+ }
+ if (addend !== undefined) {
+ result = result === undefined ? addend : (result + addend);
+ }
+ return result;
}
module.exports = add;
diff --git a/lodash.add/package.json b/lodash.add/package.json
index 9a7bcaea1..be3c6788d 100644
--- a/lodash.add/package.json
+++ b/lodash.add/package.json
@@ -1,17 +1,15 @@
{
"name": "lodash.add",
- "version": "3.4.1",
- "description": "The modern build of lodash’s `_.add` as a module.",
+ "version": "3.4.2",
+ "description": "The lodash method `_.add` exported as a module.",
"homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg",
"license": "MIT",
- "keywords": "lodash, lodash-modularized, stdlib, util",
+ "keywords": "lodash, lodash-modularized, stdlib, util, add",
"author": "John-David Dalton (http://allyoucanleet.com/)",
"contributors": [
"John-David Dalton (http://allyoucanleet.com/)",
- "Benjamin Tan (https://d10.github.io/)",
- "Blaine Bublitz (http://www.iceddev.com/)",
- "Kit Cambridge (http://kitcambridge.be/)",
+ "Blaine Bublitz (https://github.com/phated)",
"Mathias Bynens (https://mathiasbynens.be/)"
],
"repository": "lodash/lodash",
diff --git a/lodash.sortbyorder/README.md b/lodash.sortbyorder/README.md
index 1d6a7f38b..bc62a0a61 100644
--- a/lodash.sortbyorder/README.md
+++ b/lodash.sortbyorder/README.md
@@ -1,4 +1,4 @@
-# lodash.sortbyorder v3.4.1
+# lodash.sortbyorder v3.4.2
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.sortByOrder` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.
@@ -17,4 +17,4 @@ In Node.js/io.js:
var sortByOrder = require('lodash.sortbyorder');
```
-See the [documentation](https://lodash.com/docs#sortByOrder) or [package source](https://github.com/lodash/lodash/blob/3.4.1-npm-packages/lodash.sortbyorder) for more details.
+See the [documentation](https://lodash.com/docs#sortByOrder) or [package source](https://github.com/lodash/lodash/blob/3.4.2-npm-packages/lodash.sortbyorder) for more details.
diff --git a/lodash.sortbyorder/index.js b/lodash.sortbyorder/index.js
index 1fa057738..a9553024c 100644
--- a/lodash.sortbyorder/index.js
+++ b/lodash.sortbyorder/index.js
@@ -1,8 +1,8 @@
/**
- * lodash 3.4.1 (Custom Build)
+ * lodash 3.4.2 (Custom Build)
* Build: `lodash modern modularize exports="npm" -o ./`
* Copyright 2012-2015 The Dojo Foundation
- * Based on Underscore.js 1.8.2
+ * Based on Underscore.js 1.8.3
* Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
* Available under MIT license
*/
@@ -13,45 +13,52 @@ var baseEach = require('lodash._baseeach'),
/**
* This method is like `_.sortByAll` except that it allows specifying the
- * sort orders of the property names to sort by. A truthy value in `orders`
- * will sort the corresponding property name in ascending order while a
- * falsey value will sort it in descending order.
+ * sort orders of the iteratees to sort by. A truthy value in `orders` will
+ * sort the corresponding property name in ascending order while a falsey
+ * value will sort it in descending order.
+ *
+ * If a property name is provided for an iteratee the created `_.property`
+ * style callback returns the property value of the given element.
+ *
+ * If an object is provided for an iteratee the created `_.matches` style
+ * callback returns `true` for elements that have the properties of the given
+ * object, else `false`.
*
* @static
* @memberOf _
* @category Collection
* @param {Array|Object|string} collection The collection to iterate over.
- * @param {string[]} props The property names to sort by.
- * @param {boolean[]} orders The sort orders of `props`.
+ * @param {Function[]|Object[]|string[]} iteratees The iteratees to sort by.
+ * @param {boolean[]} orders The sort orders of `iteratees`.
* @param- {Object} [guard] Enables use as a callback for functions like `_.reduce`.
* @returns {Array} Returns the new sorted array.
* @example
*
* var users = [
- * { 'user': 'barney', 'age': 26 },
- * { 'user': 'fred', 'age': 40 },
- * { 'user': 'barney', 'age': 36 },
- * { 'user': 'fred', 'age': 30 }
+ * { 'user': 'fred', 'age': 48 },
+ * { 'user': 'barney', 'age': 34 },
+ * { 'user': 'fred', 'age': 42 },
+ * { 'user': 'barney', 'age': 36 }
* ];
*
* // sort by `user` in ascending order and by `age` in descending order
* _.map(_.sortByOrder(users, ['user', 'age'], [true, false]), _.values);
- * // => [['barney', 36], ['barney', 26], ['fred', 40], ['fred', 30]]
+ * // => [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 42]]
*/
-function sortByOrder(collection, props, orders, guard) {
+function sortByOrder(collection, iteratees, orders, guard) {
if (collection == null) {
return [];
}
- if (guard && isIterateeCall(props, orders, guard)) {
+ if (guard && isIterateeCall(iteratees, orders, guard)) {
orders = null;
}
- if (!isArray(props)) {
- props = props == null ? [] : [props];
+ if (!isArray(iteratees)) {
+ iteratees = iteratees == null ? [] : [iteratees];
}
if (!isArray(orders)) {
orders = orders == null ? [] : [orders];
}
- return baseSortByOrder(collection, props, orders);
+ return baseSortByOrder(collection, iteratees, orders);
}
module.exports = sortByOrder;
diff --git a/lodash.sortbyorder/package.json b/lodash.sortbyorder/package.json
index 65c8e826e..bc4bddae9 100644
--- a/lodash.sortbyorder/package.json
+++ b/lodash.sortbyorder/package.json
@@ -1,6 +1,6 @@
{
"name": "lodash.sortbyorder",
- "version": "3.4.1",
+ "version": "3.4.2",
"description": "The modern build of lodash’s `_.sortByOrder` as a module.",
"homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg",