Legend:
- Unmodified
- Added
- Removed
-
imaps-frontend/node_modules/es-iterator-helpers/README.md
rd565449 r0c6b92a 10 10 An ESnext spec-compliant sync iterator helpers shim/polyfill/replacement that works as far down as ES3. 11 11 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).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 [iterator helpers spec](https://tc39.es/proposal-iterator-helpers/) and the [iterator sequencing spec](https://tc39.es/proposal-iterator-sequencing/). 13 13 14 Because the `Iterator.prototype` methods depend on a receiver (the `this` value), the main export in each subdirectory takes the stringto operate on as the first argument.14 Because 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. 15 15 16 16 The 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. … … 20 20 - [`Iterator` constructor](https://tc39.es/proposal-iterator-helpers/#sec-iterator-constructor) 21 21 - [`Iterator.prototype`](https://tc39.es/proposal-iterator-helpers/#sec-iterator.prototype) 22 - [`Iterator.concat`](https://tc39.es/proposal-iterator-sequencing/) 22 23 - [`Iterator.from`](https://tc39.es/proposal-iterator-helpers/#sec-iterator.from) 23 24 - [`Iterator.prototype.constructor`](https://tc39.es/proposal-iterator-helpers/#sec-iteratorprototype.constructor) … … 38 39 - node v22, Chrome >= v122: has a [bug](https://issues.chromium.org/issues/336839115) 39 40 - node < v22, Chrome < v122, Safari <= v17.1, Firefox <= v125: not implemented 41 - all environments lack Iterator.concat 40 42 41 43 ## Getting started … … 46 48 47 49 ## Usage/Examples 50 51 Using explicit imports: 48 52 49 53 ```js … … 68 72 ``` 69 73 74 Shim using `require`: 75 70 76 ```js 71 require(' ./auto'); // shim all of the methods77 require('es-iterator-helpers/auto'); // shim all of the methods 72 78 73 require('./Iterator.prototype.map/auto'); // shim the “map” method 79 require('es-iterator-helpers/Iterator.prototype.map/auto'); // shim the “map” method 80 ``` 81 82 Shim using `import` syntax: 83 84 [](#preventEval) 85 ```js 86 import 'es-iterator-helpers/auto'; // shim all of the methods 87 88 import 'es-iterator-helpers/Iterator.prototype.map/auto'; // shim the “map” method 74 89 ``` 75 90
Note:
See TracChangeset
for help on using the changeset viewer.