_isArrayLike.js 466 B

1234567891011
  1. var _createSizePropertyCheck = require('./_createSizePropertyCheck.js');
  2. var _getLength = require('./_getLength.js');
  3. // Internal helper for collection methods to determine whether a collection
  4. // should be iterated as an array or as an object.
  5. // Related: https://people.mozilla.org/~jorendorff/es6-draft.html#sec-tolength
  6. // Avoids a very nasty iOS 8 JIT bug on ARM-64. #2094
  7. var isArrayLike = _createSizePropertyCheck(_getLength);
  8. module.exports = isArrayLike;