From 9fba7be2960e3882e8c32cd8d816d523b0c7f5c2 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Tue, 4 Oct 2016 08:41:08 -0700 Subject: [PATCH] Add comments to `arrayLikeKeys`. [ci skip] --- lodash.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lodash.js b/lodash.js index 86a4450c9..c9e47844c 100644 --- a/lodash.js +++ b/lodash.js @@ -2397,9 +2397,13 @@ for (var key in value) { if ((inherited || hasOwnProperty.call(value, key)) && !(skipIndexes && ( + // Safari 9 has enumerable `arguments.length` in strict mode. key == 'length' || + // Node.js 0.10 has enumerable non-index properties on buffers. (isBuff && (key == 'offset' || key == 'parent')) || + // PhantomJS 2 has enumerable non-index properties on typed arrays. (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) || + // Skip index properties. isIndex(key, length) ))) { result.push(key);