Ignore:
Timestamp:
01/21/25 03:08:24 (3 days ago)
Author:
stefan toskovski <stefantoska84@…>
Branches:
main
Parents:
0c6b92a
Message:

F4 Finalna Verzija

File:
1 edited

Legend:

Unmodified
Added
Removed
  • imaps-frontend/node_modules/es-abstract/2023/FindViaPredicate.js

    r0c6b92a r79a0317  
    22
    33var $TypeError = require('es-errors/type');
     4var isInteger = require('math-intrinsics/isInteger');
    45
    56var Call = require('./Call');
     
    89var IsCallable = require('./IsCallable');
    910var ToString = require('./ToString');
    10 var Type = require('./Type');
    1111
    12 var isInteger = require('../helpers/isInteger');
     12var isObject = require('../helpers/isObject');
     13
     14// https://262.ecma-international.org/14.0/#sec-findviapredicate
    1315
    1416module.exports = function FindViaPredicate(O, len, direction, predicate, thisArg) {
    15         if (Type(O) !== 'Object') {
     17        if (!isObject(O)) {
    1618                throw new $TypeError('Assertion failed: Type(O) is not Object');
    1719        }
Note: See TracChangeset for help on using the changeset viewer.