_getLength.js 444 B

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