Legend:
- Unmodified
- Added
- Removed
-
imaps-frontend/node_modules/es-abstract/2020/LengthOfArrayLike.js
r0c6b92a r79a0317 5 5 var Get = require('./Get'); 6 6 var ToLength = require('./ToLength'); 7 var Type = require('./Type'); 7 8 var isObject = require('../helpers/isObject'); 8 9 9 10 // https://262.ecma-international.org/11.0/#sec-lengthofarraylike 10 11 11 12 module.exports = function LengthOfArrayLike(obj) { 12 if ( Type(obj) !== 'Object') {13 if (!isObject(obj)) { 13 14 throw new $TypeError('Assertion failed: `obj` must be an Object'); 14 15 }
Note:
See TracChangeset
for help on using the changeset viewer.