diff options
| author | Danijel Andjelkovic <adanijel99@gmail.com> | 2022-03-01 21:54:41 +0100 | 
|---|---|---|
| committer | Danijel Andjelkovic <adanijel99@gmail.com> | 2022-03-01 21:54:41 +0100 | 
| commit | 6c8128f9fd5a5d0be115806c35a21b3d683df8d6 (patch) | |
| tree | f46c2f6b3b9b294ff32bd75c08ccdc9e7a8cc4ef /sandbox/testAppNevena/Front/node_modules/lodash/_arrayLikeKeys.js | |
| parent | 2400b84e95913665da6279114168148444b8f9ab (diff) | |
| parent | 7d3640f824f46490b47bd95f1c5a16644f712068 (diff) | |
Merge branch 'dev' of http://gitlab.pmf.kg.ac.rs/igrannonica/neuronstellar into logo
Diffstat (limited to 'sandbox/testAppNevena/Front/node_modules/lodash/_arrayLikeKeys.js')
| -rw-r--r-- | sandbox/testAppNevena/Front/node_modules/lodash/_arrayLikeKeys.js | 49 | 
1 files changed, 49 insertions, 0 deletions
diff --git a/sandbox/testAppNevena/Front/node_modules/lodash/_arrayLikeKeys.js b/sandbox/testAppNevena/Front/node_modules/lodash/_arrayLikeKeys.js new file mode 100644 index 00000000..b2ec9ce7 --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/lodash/_arrayLikeKeys.js @@ -0,0 +1,49 @@ +var baseTimes = require('./_baseTimes'), +    isArguments = require('./isArguments'), +    isArray = require('./isArray'), +    isBuffer = require('./isBuffer'), +    isIndex = require('./_isIndex'), +    isTypedArray = require('./isTypedArray'); + +/** Used for built-in method references. */ +var objectProto = Object.prototype; + +/** Used to check objects for own properties. */ +var hasOwnProperty = objectProto.hasOwnProperty; + +/** + * Creates an array of the enumerable property names of the array-like `value`. + * + * @private + * @param {*} value The value to query. + * @param {boolean} inherited Specify returning inherited property names. + * @returns {Array} Returns the array of property names. + */ +function arrayLikeKeys(value, inherited) { +  var isArr = isArray(value), +      isArg = !isArr && isArguments(value), +      isBuff = !isArr && !isArg && isBuffer(value), +      isType = !isArr && !isArg && !isBuff && isTypedArray(value), +      skipIndexes = isArr || isArg || isBuff || isType, +      result = skipIndexes ? baseTimes(value.length, String) : [], +      length = result.length; + +  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); +    } +  } +  return result; +} + +module.exports = arrayLikeKeys;  | 
