Ignore:
Timestamp:
12/12/24 17:06:06 (5 weeks ago)
Author:
stefan toskovski <stefantoska84@…>
Branches:
main
Parents:
d565449
Message:

Pred finalna verzija

Location:
imaps-frontend/node_modules/es-iterator-helpers/aos
Files:
5 added
1 edited

Legend:

Unmodified
Added
Removed
  • imaps-frontend/node_modules/es-iterator-helpers/aos/GetIteratorFlattenable.js

    rd565449 r0c6b92a  
    1212var getIteratorMethod = require('es-abstract/helpers/getIteratorMethod');
    1313
     14// https://tc39.es/proposal-iterator-helpers/#sec-getiteratorflattenable
     15
    1416module.exports = function GetIteratorFlattenable(obj, stringHandling) {
     17        if (stringHandling !== 'REJECT-STRINGS' && stringHandling !== 'ITERATE-STRINGS') {
     18                throw new $TypeError('Assertion failed: `stringHandling` must be "REJECT-STRINGS" or "ITERATE-STRINGS"');
     19        }
     20
    1521        if (Type(obj) !== 'Object') {
    16                 if (stringHandling === 'reject-strings' || typeof obj !== 'string') {
     22                if (stringHandling === 'REJECT-STRINGS' || typeof obj !== 'string') {
    1723                        throw new $TypeError('obj must be an Object'); // step 1.a
    1824                }
Note: See TracChangeset for help on using the changeset viewer.