Skip to content

Commit

Permalink
Fix style nits.
Browse files Browse the repository at this point in the history
  • Loading branch information
jdalton committed Feb 4, 2018
1 parent 5adb4ee commit 5e58cd2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions lodash.js
Original file line number Diff line number Diff line change
Expand Up @@ -2674,7 +2674,7 @@
stack.set(value, result);

if (isSet(value)) {
value.forEach(function(subValue) {
value.forEach(function(subValue) {
result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));
});

Expand Down Expand Up @@ -6270,13 +6270,13 @@
* @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
*/
function isIndex(value, length) {
var type = typeof value
length = length == null ? MAX_SAFE_INTEGER : length
var type = typeof value;
length = length == null ? MAX_SAFE_INTEGER : length;

return !!length &&
(type == 'number' ||
(type != 'symbol' && reIsUint.test(value))) &&
(value > -1 && value % 1 == 0 && value < length)
(value > -1 && value % 1 == 0 && value < length);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion test/test-fp.js
Original file line number Diff line number Diff line change
Expand Up @@ -2144,7 +2144,7 @@
var object = { 'a': { 'b': _.constant(true) } },
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);
});

Expand Down
4 changes: 2 additions & 2 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2958,7 +2958,7 @@
assert.deepEqual(getSymbols(actual.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[symbol3], object.a.b[symbol3])
assert.deepEqual(actual.a.b[symbol3], object.a.b[symbol3]);
}
else {
skipAssert(assert, 7);
Expand Down Expand Up @@ -7546,7 +7546,7 @@
if (JSON) {
_.merge({}, JSON.parse('{"__proto__":{"a":1}}'));

var actual = "a" in objectProto;
var actual = 'a' in objectProto;
delete objectProto.a;

assert.notOk(actual);
Expand Down

0 comments on commit 5e58cd2

Please sign in to comment.