Skip to content

Commit c733f93

Browse files
committed
Bump to v4.14.2.
1 parent cd04b44 commit c733f93

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+648
-678
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# lodash v4.14.1
1+
# lodash v4.14.2
22

33
The [Lodash](https://lodash.com/) library exported as [Node.js](https://nodejs.org/) modules.
44

@@ -28,13 +28,13 @@ var chunk = require('lodash/chunk');
2828
var extend = require('lodash/fp/extend');
2929
```
3030

31-
See the [package source](https://github.com/lodash/lodash/tree/4.14.1-npm) for more details.
31+
See the [package source](https://github.com/lodash/lodash/tree/4.14.2-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) `_` in the Node.js < 6 REPL.<br>
3535
Install [n_](https://www.npmjs.com/package/n_) for a REPL that includes `lodash` by default.
3636

3737
## Support
3838

39-
Tested in Chrome 50-51, Firefox 46-47, IE 9-11, Edge 13, Safari 8-9, Node.js 0.10-6, & PhantomJS 1.9.8.<br>
39+
Tested in Chrome 51-52, Firefox 47-48, IE 9-11, Edge 14, Safari 8-9, Node.js 0.10-6, & PhantomJS 2.1.1.<br>
4040
Automated [browser](https://saucelabs.com/u/lodash) & [CI](https://travis-ci.org/lodash/lodash/) test runs are available.

_Reflect.js

Lines changed: 0 additions & 6 deletions
This file was deleted.

_arrayLikeKeys.js

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
var baseTimes = require('./_baseTimes'),
2+
isArguments = require('./isArguments'),
3+
isArray = require('./isArray'),
4+
isIndex = require('./_isIndex'),
5+
isString = require('./isString');
6+
7+
/** Used for built-in method references. */
8+
var objectProto = Object.prototype;
9+
10+
/** Used to check objects for own properties. */
11+
var hasOwnProperty = objectProto.hasOwnProperty;
12+
13+
/**
14+
* Creates an array of the enumerable property names of the array-like `value`.
15+
*
16+
* @private
17+
* @param {*} value The value to query.
18+
* @param {boolean} inherited Specify returning inherited property names.
19+
* @returns {Array} Returns the array of property names.
20+
*/
21+
function arrayLikeKeys(value, inherited) {
22+
var result = (isArray(value) || isString(value) || isArguments(value))
23+
? baseTimes(value.length, String)
24+
: [];
25+
26+
var length = result.length,
27+
skipIndexes = !!length;
28+
29+
for (var key in value) {
30+
if ((inherited || hasOwnProperty.call(value, key)) &&
31+
!(skipIndexes && (key == 'length' || isIndex(key, length)))) {
32+
result.push(key);
33+
}
34+
}
35+
return result;
36+
}
37+
38+
module.exports = arrayLikeKeys;

_assignValue.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ var hasOwnProperty = objectProto.hasOwnProperty;
88

99
/**
1010
* Assigns `value` to `key` of `object` if the existing value is not equivalent
11-
* using [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
11+
* using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
1212
* for equality comparisons.
1313
*
1414
* @private

_baseConformsTo.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,13 @@ function baseConformsTo(object, source, props) {
1111
if (object == null) {
1212
return !length;
1313
}
14-
var index = length;
15-
while (index--) {
16-
var key = props[index],
14+
object = Object(object);
15+
while (length--) {
16+
var key = props[length],
1717
predicate = source[key],
1818
value = object[key];
1919

20-
if ((value === undefined &&
21-
!(key in Object(object))) || !predicate(value)) {
20+
if ((value === undefined && !(key in object)) || !predicate(value)) {
2221
return false;
2322
}
2423
}

_baseDelay.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ var FUNC_ERROR_TEXT = 'Expected a function';
99
* @param {Function} func The function to delay.
1010
* @param {number} wait The number of milliseconds to delay invocation.
1111
* @param {Array} args The arguments to provide to `func`.
12-
* @returns {number} Returns the timer id.
12+
* @returns {number|Object} Returns the timer id or timeout object.
1313
*/
1414
function baseDelay(func, wait, args) {
1515
if (typeof func != 'function') {

_baseGetTag.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ var objectProto = Object.prototype;
33

44
/**
55
* Used to resolve the
6-
* [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
6+
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
77
* of values.
88
*/
99
var objectToString = objectProto.toString;

_baseHas.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
var getPrototype = require('./_getPrototype');
2-
31
/** Used for built-in method references. */
42
var objectProto = Object.prototype;
53

@@ -15,12 +13,7 @@ var hasOwnProperty = objectProto.hasOwnProperty;
1513
* @returns {boolean} Returns `true` if `key` exists, else `false`.
1614
*/
1715
function baseHas(object, key) {
18-
// Avoid a bug in IE 10-11 where objects with a [[Prototype]] of `null`,
19-
// that are composed entirely of index properties, return `false` for
20-
// `hasOwnProperty` checks of them.
21-
return object != null &&
22-
(hasOwnProperty.call(object, key) ||
23-
(typeof object == 'object' && key in object && getPrototype(object) === null));
16+
return object != null && hasOwnProperty.call(object, key);
2417
}
2518

2619
module.exports = baseHas;

_baseIsArrayBuffer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ var objectProto = Object.prototype;
77

88
/**
99
* Used to resolve the
10-
* [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
10+
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
1111
* of values.
1212
*/
1313
var objectToString = objectProto.toString;

_baseIsDate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ var objectProto = Object.prototype;
88

99
/**
1010
* Used to resolve the
11-
* [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
11+
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
1212
* of values.
1313
*/
1414
var objectToString = objectProto.toString;

0 commit comments

Comments
 (0)