Legend:
- Unmodified
- Added
- Removed
-
imaps-frontend/node_modules/es-abstract/2023/FindViaPredicate.js
r0c6b92a r79a0317 2 2 3 3 var $TypeError = require('es-errors/type'); 4 var isInteger = require('math-intrinsics/isInteger'); 4 5 5 6 var Call = require('./Call'); … … 8 9 var IsCallable = require('./IsCallable'); 9 10 var ToString = require('./ToString'); 10 var Type = require('./Type');11 11 12 var isInteger = require('../helpers/isInteger'); 12 var isObject = require('../helpers/isObject'); 13 14 // https://262.ecma-international.org/14.0/#sec-findviapredicate 13 15 14 16 module.exports = function FindViaPredicate(O, len, direction, predicate, thisArg) { 15 if ( Type(O) !== 'Object') {17 if (!isObject(O)) { 16 18 throw new $TypeError('Assertion failed: Type(O) is not Object'); 17 19 }
Note:
See TracChangeset
for help on using the changeset viewer.