JSPM

es6-collections-iterators

0.2.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 220
  • Score
    100M100P100Q89877F
  • License MIT

Adds missing values, keys and entries functions to native es6 collection implementations

Package Exports

  • es6-collections-iterators

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (es6-collections-iterators) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

es6-collections-iterators

Adds missing values, keys and entries functions to native es6 collection implementations

This 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.

Usage

NPM

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.