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

Pred finalna verzija

File:
1 edited

Legend:

Unmodified
Added
Removed
  • imaps-frontend/node_modules/es-iterator-helpers/README.md

    rd565449 r0c6b92a  
    1010An ESnext spec-compliant sync iterator helpers shim/polyfill/replacement that works as far down as ES3.
    1111
    12 This package implements the [es-shim API](https://github.com/es-shims/api) “multi” interface. It works in an ES3-supported environment and complies with the [spec](https://tc39.es/ecma262/#sec-additional-properties-of-the-string.prototype-object).
     12This package implements the [es-shim API](https://github.com/es-shims/api) “multi” interface. It works in an ES3-supported environment and complies with the [iterator helpers spec](https://tc39.es/proposal-iterator-helpers/) and the [iterator sequencing spec](https://tc39.es/proposal-iterator-sequencing/).
    1313
    14 Because the `Iterator.prototype` methods depend on a receiver (the `this` value), the main export in each subdirectory takes the string to operate on as the first argument.
     14Because the `Iterator.prototype` methods depend on a receiver (the `this` value), the main export in each subdirectory takes the iterator to operate on as the first argument.
    1515
    1616The main export of the package itself is simply an array of the available directory names. It’s sole intended use is for build tooling and testing.
     
    2020 - [`Iterator` constructor](https://tc39.es/proposal-iterator-helpers/#sec-iterator-constructor)
    2121 - [`Iterator.prototype`](https://tc39.es/proposal-iterator-helpers/#sec-iterator.prototype)
     22 - [`Iterator.concat`](https://tc39.es/proposal-iterator-sequencing/)
    2223 - [`Iterator.from`](https://tc39.es/proposal-iterator-helpers/#sec-iterator.from)
    2324 - [`Iterator.prototype.constructor`](https://tc39.es/proposal-iterator-helpers/#sec-iteratorprototype.constructor)
     
    3839 - node v22, Chrome >= v122: has a [bug](https://issues.chromium.org/issues/336839115)
    3940 - node < v22, Chrome < v122, Safari <= v17.1, Firefox <= v125: not implemented
     41 - all environments lack Iterator.concat
    4042
    4143## Getting started
     
    4648
    4749## Usage/Examples
     50
     51Using explicit imports:
    4852
    4953```js
     
    6872```
    6973
     74Shim using `require`:
     75
    7076```js
    71 require('./auto'); // shim all of the methods
     77require('es-iterator-helpers/auto'); // shim all of the methods
    7278
    73 require('./Iterator.prototype.map/auto'); // shim the “map” method
     79require('es-iterator-helpers/Iterator.prototype.map/auto'); // shim the “map” method
     80```
     81
     82Shim using `import` syntax:
     83
     84[](#preventEval)
     85```js
     86import 'es-iterator-helpers/auto'; // shim all of the methods
     87
     88import 'es-iterator-helpers/Iterator.prototype.map/auto'; // shim the “map” method
    7489```
    7590
Note: See TracChangeset for help on using the changeset viewer.