Fix style nits.

This commit is contained in:
John-David Dalton
2018-02-02 20:30:15 -08:00
parent 5adb4ee95c
commit 5e58cd216c
3 changed files with 7 additions and 7 deletions

View File

@@ -2674,7 +2674,7 @@
stack.set(value, result); stack.set(value, result);
if (isSet(value)) { if (isSet(value)) {
value.forEach(function(subValue) { value.forEach(function(subValue) {
result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack)); result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));
}); });
@@ -6270,13 +6270,13 @@
* @returns {boolean} Returns `true` if `value` is a valid index, else `false`. * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
*/ */
function isIndex(value, length) { function isIndex(value, length) {
var type = typeof value var type = typeof value;
length = length == null ? MAX_SAFE_INTEGER : length length = length == null ? MAX_SAFE_INTEGER : length;
return !!length && return !!length &&
(type == 'number' || (type == 'number' ||
(type != 'symbol' && reIsUint.test(value))) && (type != 'symbol' && reIsUint.test(value))) &&
(value > -1 && value % 1 == 0 && value < length) (value > -1 && value % 1 == 0 && value < length);
} }
/** /**

View File

@@ -2144,7 +2144,7 @@
var object = { 'a': { 'b': _.constant(true) } }, var object = { 'a': { 'b': _.constant(true) } },
actual = fp.update('a.b')(_.identity)(object); actual = fp.update('a.b')(_.identity)(object);
assert.strictEqual(typeof object.a.b, 'function') assert.strictEqual(typeof object.a.b, 'function');
assert.strictEqual(object.a.b, actual.a.b); assert.strictEqual(object.a.b, actual.a.b);
}); });

View File

@@ -2958,7 +2958,7 @@
assert.deepEqual(getSymbols(actual.a.b), [symbol]); assert.deepEqual(getSymbols(actual.a.b), [symbol]);
assert.deepEqual(actual.a.b[symbol], object.a.b[symbol]); assert.deepEqual(actual.a.b[symbol], object.a.b[symbol]);
assert.deepEqual(actual.a.b[symbol2], object.a.b[symbol2]); assert.deepEqual(actual.a.b[symbol2], object.a.b[symbol2]);
assert.deepEqual(actual.a.b[symbol3], object.a.b[symbol3]) assert.deepEqual(actual.a.b[symbol3], object.a.b[symbol3]);
} }
else { else {
skipAssert(assert, 7); skipAssert(assert, 7);
@@ -7546,7 +7546,7 @@
if (JSON) { if (JSON) {
_.merge({}, JSON.parse('{"__proto__":{"a":1}}')); _.merge({}, JSON.parse('{"__proto__":{"a":1}}'));
var actual = "a" in objectProto; var actual = 'a' in objectProto;
delete objectProto.a; delete objectProto.a;
assert.notOk(actual); assert.notOk(actual);