mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-10 02:47:50 +00:00
Minor lodash.js cleanup.
Former-commit-id: 544f2a2690b48b52870b3ab62509221a82ed4173
This commit is contained in:
10
lodash.js
10
lodash.js
@@ -995,8 +995,8 @@
|
|||||||
// iterated property is an object's own property then there are no inherited
|
// iterated property is an object's own property then there are no inherited
|
||||||
// enumerable properties.
|
// enumerable properties.
|
||||||
if (iteratesOwnLast) {
|
if (iteratesOwnLast) {
|
||||||
forIn(value, function(objValue, objKey) {
|
forIn(value, function(value, key, object) {
|
||||||
result = !hasOwnProperty.call(value, objKey);
|
result = !hasOwnProperty.call(object, key);
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
return result === false;
|
return result === false;
|
||||||
@@ -1004,8 +1004,8 @@
|
|||||||
// In most environments an object's own properties are iterated before
|
// In most environments an object's own properties are iterated before
|
||||||
// its inherited properties. If the last iterated property is an object's
|
// its inherited properties. If the last iterated property is an object's
|
||||||
// own property then there are no inherited enumerable properties.
|
// own property then there are no inherited enumerable properties.
|
||||||
forIn(value, function(objValue, objKey) {
|
forIn(value, function(value, key) {
|
||||||
result = objKey;
|
result = key;
|
||||||
});
|
});
|
||||||
return result === false || hasOwnProperty.call(value, result);
|
return result === false || hasOwnProperty.call(value, result);
|
||||||
}
|
}
|
||||||
@@ -1838,11 +1838,11 @@
|
|||||||
' if (found) {\n' +
|
' if (found) {\n' +
|
||||||
' result[index] = values[stackLength]\n' +
|
' result[index] = values[stackLength]\n' +
|
||||||
' } else {\n' +
|
' } else {\n' +
|
||||||
' sources.push(source);\n' +
|
|
||||||
' values.push(value = (value = result[index]) && isArr\n' +
|
' values.push(value = (value = result[index]) && isArr\n' +
|
||||||
' ? (isArray(value) ? value : [])\n' +
|
' ? (isArray(value) ? value : [])\n' +
|
||||||
' : (isPlainObject(value) ? value : {})\n' +
|
' : (isPlainObject(value) ? value : {})\n' +
|
||||||
' );\n' +
|
' );\n' +
|
||||||
|
' sources.push(source);\n' +
|
||||||
' result[index] = callee(value, source, isPlainObject, data)\n' +
|
' result[index] = callee(value, source, isPlainObject, data)\n' +
|
||||||
' }\n' +
|
' }\n' +
|
||||||
'} else if (source != null) {\n' +
|
'} else if (source != null) {\n' +
|
||||||
|
|||||||
Reference in New Issue
Block a user