uupaa.es.js
v0.9.25
Published
[![npm](https://nodei.co/npm/uupaa.es.js.svg?downloads=true&stars=true)](https://nodei.co/npm/uupaa.es.js/)
Downloads
75
Maintainers
Readme
ES.js
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");