https://github.com/steditor/es6-collections-iterators
Adds missing values, keys and entries functions to native es6 collection implementations
https://github.com/steditor/es6-collections-iterators
Last synced: about 2 months ago
JSON representation
Adds missing values, keys and entries functions to native es6 collection implementations
- Host: GitHub
- URL: https://github.com/steditor/es6-collections-iterators
- Owner: Steditor
- License: mit
- Created: 2015-07-04T12:28:15.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-07-06T08:19:44.000Z (almost 10 years ago)
- Last Synced: 2025-03-02T10:04:21.615Z (2 months ago)
- Language: JavaScript
- Size: 133 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# es6-collections-iterators
Adds missing values, keys and entries functions to native es6 collection implementationsThis especially concerns Internet Explorer 11, which implements es6 collections,
but does not implement the functions to retreive their elements via iterators
and Safari 7.1 and 8, which implement the functions but do not return a valid
iterator (the `next` method is missing).This polyfill tries to fix this to make IE 11 and Safari 7.1 and 8 more
compliant with the current [standard](http://www.ecma-international.org/ecma-262/6.0/).## Usage
[](https://nodei.co/npm/es6-collections-iterators/)
```js
require('es6-collections-iterators')
```*Note that this polyfill only does something if the collections `Set` and `Map`
are available, but the respective prototype methods `entries`, `keys` and
`values` are not implemented correctly.*