getLength.js 440 B

123456789101112131415
  1. var baseProperty = require('./baseProperty');
  2. /**
  3. * Gets the "length" property value of `object`.
  4. *
  5. * **Note:** This function is used to avoid a [JIT bug](https://bugs.webkit.org/show_bug.cgi?id=142792)
  6. * that affects Safari on at least iOS 8.1-8.3 ARM64.
  7. *
  8. * @private
  9. * @param {Object} object The object to query.
  10. * @returns {*} Returns the "length" value.
  11. */
  12. var getLength = baseProperty('length');
  13. module.exports = getLength;