mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-10 02:47:50 +00:00
Add comments to arrayLikeKeys. [ci skip]
This commit is contained in:
@@ -2397,9 +2397,13 @@
|
|||||||
for (var key in value) {
|
for (var key in value) {
|
||||||
if ((inherited || hasOwnProperty.call(value, key)) &&
|
if ((inherited || hasOwnProperty.call(value, key)) &&
|
||||||
!(skipIndexes && (
|
!(skipIndexes && (
|
||||||
|
// Safari 9 has enumerable `arguments.length` in strict mode.
|
||||||
key == 'length' ||
|
key == 'length' ||
|
||||||
|
// Node.js 0.10 has enumerable non-index properties on buffers.
|
||||||
(isBuff && (key == 'offset' || key == 'parent')) ||
|
(isBuff && (key == 'offset' || key == 'parent')) ||
|
||||||
|
// PhantomJS 2 has enumerable non-index properties on typed arrays.
|
||||||
(isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||
|
(isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||
|
||||||
|
// Skip index properties.
|
||||||
isIndex(key, length)
|
isIndex(key, length)
|
||||||
))) {
|
))) {
|
||||||
result.push(key);
|
result.push(key);
|
||||||
|
|||||||
Reference in New Issue
Block a user