uupaa.es.js

0.9.25 • Public • Published

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");

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i uupaa.es.js

      Weekly Downloads

      38

      Version

      0.9.25

      License

      MIT

      Last publish

      Collaborators

      • uupaa