_isArrayLike.js 454 B

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