ES6 polyfills
A collection of ES6 polyfills that use native implementations if available and do not pollute the global namespace
List of polyfills
- Object (Object.assign)
- Array (Array.of)
- Promise
Polyfill implementations are from different projects:
- Object (Object.assign): https://github.com/rubennorte/es6-object-assign
- Promise: https://github.com/lahmatiy/es6-promise-polyfill
Installation
Clone the sources and install the package (In the source directory) on command line using npm
:
npm install
Testing
Run the following NPM script to lint, test and check coverage of the code:
npm run check
Usage
AMD
;
Node.js
var Promise = ;var p = { ;};
License and copyright
Copyright (c) 2015-2016 University Of Helsinki (The National Library Of Finland)
This project's source code is licensed under the terms of GNU Lesser General Public License Version 3 or any later version. See each polyfill implementation for their respective licensing terms.