Skip to content
/ ES.js Public

ECMA-262 Script version 5/6/7 polyfill, fallback, shims and documents.

License

Notifications You must be signed in to change notification settings

uupaa/ES.js

Repository files navigation

ES.js Build Status

npm

ECMA-262 Script version 5/6/7 polyfill, fallback, shims and documents.

This module made of WebModule.

Documentation

Browser, NW.js and Electron

<script src="<module-dir>/lib/WebModule.js"></script>
<script src="<module-dir>/lib/ES.js"></script>
<script>

Object.keys({ a: 1, b: 2, c: 3, d: 4 });       // ["a", "b", "c", "d"]
Object.Assign({}, { a: 1, b: 2, c: 3, d: 4 }); // { a: 1, b: 2, c: 3, d: 4 }
[1,2,3].includes(3);                           // true

// raw interface
WebModule.ES[5].Object.keys({ a: 1, b: 2, c: 3, d: 4 });       // ["a", "b", "c", "d"]
WebModule.ES[6].Object.Assign({}, { a: 1, b: 2, c: 3, d: 4 }); // { a: 1, b: 2, c: 3, d: 4 }
WebModule.ES[7].Array.prototype.includes.call([1,2,3], 3);     // true

</script>

WebWorkers

importScripts("<module-dir>/lib/WebModule.js");
importScripts("<module-dir>/lib/ES.js");

Node.js

require("<module-dir>/lib/WebModule.js");
require("<module-dir>/lib/ES.js");

About

ECMA-262 Script version 5/6/7 polyfill, fallback, shims and documents.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published