length-of-array-like.js 211 B

1234567
  1. var toLength = require('../internals/to-length');
  2. // `LengthOfArrayLike` abstract operation
  3. // https://tc39.es/ecma262/#sec-lengthofarraylike
  4. module.exports = function (obj) {
  5. return toLength(obj.length);
  6. };