8 lines
211 B
JavaScript
8 lines
211 B
JavaScript
|
var toLength = require('../internals/to-length');
|
||
|
|
||
|
// `LengthOfArrayLike` abstract operation
|
||
|
// https://tc39.es/ecma262/#sec-lengthofarraylike
|
||
|
module.exports = function (obj) {
|
||
|
return toLength(obj.length);
|
||
|
};
|