8000 Bump to v3.5.0. · lodash/lodash@06f6ffa · GitHub
[go: up one dir, main page]

Skip to content

Commit 06f6ffa

Browse files
committed
Bump to v3.5.0.
1 parent 4881dda commit 06f6ffa

29 files changed

+197
-125
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# lodash v3.4.0
1+
# lodash v3.5.0
22

33
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash](https://lodash.com/) exported as [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) modules.
44

@@ -28,7 +28,7 @@ var array = require('lodash/array');
2828
var chunk = require('lodash/array/chunk');
2929
```
3030

31-
See the [package source](https://github.com/lodash/lodash/tree/3.4.0-npm) for more details.
31+
See the [package source](https://github.com/lodash/lodash/tree/3.5.0-npm) for more details.
3232

3333
**Note:**<br>
3434
Don’t assign values to the [special variable](http://nodejs.org/api/repl.html#repl_repl_features) `_` when in the REPL.<br>
@@ -39,8 +39,8 @@ Install [n_](https://www.npmjs.com/package/n_) for a REPL that includes lodash b
3939
lodash is also available in a variety of other builds & 10000 module formats.
4040

4141
* npm packages for [modern](https://www.npmjs.com/package/lodash), [compatibility](https://www.npmjs.com/package/lodash-compat), & [per method](https://www.npmjs.com/browse/keyword/lodash-modularized) builds
42-
* AMD modules for [modern](https://github.com/lodash/lodash/tree/3.4.0-amd) & [compatibility](https://github.com/lodash/lodash-compat/tree/3.4.0-amd) builds
43-
* ES modules for the [modern](https://github.com/lodash/lodash/tree/3.4.0-es) build
42+
* AMD modules for [modern](https://github.com/lodash/lodash/tree/3.5.0-amd) & [compatibility](https://github.com/lodash/lodash-compat/tree/3.5.0-amd) builds
43+
* ES modules for the [modern](https://github.com/lodash/lodash/tree/3.5.0-es) build
4444

4545
## Further Reading
4646

@@ -112,5 +112,5 @@ lodash is also available in a variety of other builds & module formats.
112112

113113
## Support
114114

115-
Tested in Chrome 40-41, Firefox 35-36, IE 6-11, Opera 26-27, Safari 5-8, io.js 1.4.3, Node.js 0.8.28, 0.10.36, & 0.12.0, PhantomJS 1.9.8, RingoJS 0.11, & Rhino 1.7RC5.
115+
Tested in Chrome 40-41, Firefox 35-36, IE 6-11, Opera 26-27, Safari 5-8, io.js 1.5.0, Node.js 0.8.28, 0.10.36, & 0.12.0, PhantomJS 1.9.8, RingoJS 0.11, & Rhino 1.7RC5.
116116
Automated [browser](https://saucelabs.com/u/lodash) & [CI](https://travis-ci.org/lodash/lodash/) test runs are available. Special thanks to [Sauce Labs](https://saucelabs.com/) for providing automated browser testing.

array/indexOf.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,10 @@ function indexOf(array, value, fromIndex) {
4747
var index = binaryIndex(array, value),
4848
other = array[index];
4949

50-
return (value === value ? value === other : other !== other) ? index : -1;
50+
if (value === value ? (value === other) : (other !== other)) {
51+
return index;
52+
}
53+
return -1;
5154
}
5255
return baseIndexOf(array, value, fromIndex || 0);
5356
}

array/lastIndexOf.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,10 @@ function lastIndexOf(array, value, fromIndex) {
4141
} else if (fromIndex) {
4242
index = binaryIndex(array, value, true) - 1;
4343
var other = array[index];
44-
return (value === value ? value === other : other !== other) ? index : -1;
44+
if (value === value ? (value === other) : (other !== other)) {
45+
return index;
46+
}
47+
return -1;
4548
}
4649
if (value !== value) {
4750
return indexOfNaN(array, index, true);

chain/lodash.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,14 @@ var hasOwnProperty = objectProto.hasOwnProperty;
2727
* Chaining is supported in custom builds as long as the `_#value` method is
2828
* directly or indirectly included in the build.
2929
*
30-
* In addition to lodash methods, wrappers also have the following `Array` methods:
31-
* `concat`, `join`, `pop`, `push`, `reverse`, `shift`, `slice`, `sort`, `splice`,
32-
* and `unshift`
30+
* In addition to lodash methods, wrappers have `Array` and `String` methods.
31+
*
32+
* The wrapper `Array` methods are:
33+
* `concat`, `join`, `pop`, `push`, `reverse`, `shift`, `slice`, `sort`,
34+
* `splice`, and `unshift`
35+
*
36+
* The wrapper `String` methods are:
37+
* `replace` and `split`
3338
*
3439
* The wrapper methods that support shortcut fusion are:
3540
* `compact`, `drop`, `dropRight`, `dropRightWhile`, `dropWhile`, `filter`,

collection/sortByOrder.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,14 @@ var baseSortByOrder = require('../internal/baseSortByOrder'),
1414
* @param {Array|Object|string} collection The collection to iterate over.
1515
* @param {string[]} props The property names to sort by.
1616
* @param {boolean[]} orders The sort orders of `props`.
17+
* @param- {Object} [guard] Enables use as a callback for functions like `_.reduce`.
1718
* @returns {Array} Returns the new sorted array.
1819
* @example
1920
*
2021
* var users = [
21-
* { 'user': 'barney', 'age': 36 },
22-
* { 'user': 'fred', 'age': 40 },
2322
* { 'user': 'barney', 'age': 26 },
23+
* { 'user': 'fred', 'age': 40 },
24+
* { 'user': 'barney', 'age': 36 },
2425
* { 'user': 'fred', 'age': 30 }
2526
* ];
2627
*

0 commit comments

Comments
 (0)
0