uupaa.extend.js

0.9.5 • Public • Published

Extend.js Build Status

npm

Mixin, Polyfill, Fallback functions.

Document

How to use

Browser

<script src="lib/Extend.js">
<script>
Extend.tree(global, {
     "Array": {
         "name": "Array",
         "isArray": Array_isArray,
         "prototype": {
             "forEach": Array_forEach
         }
     },
     "String": {
         "name": "String",
         "prototype": {
             "trim": String_trim
         }
     }
 });

Extend.define(Object, "keys", Object.keys);

Extend.mixin(Object, { "keys": Object.keys });

</script>

WebWorkers

importScripts("lib/Extend.js");

Node.js

var Extend = require("lib/Extend.js");

Package Sidebar

Install

npm i uupaa.extend.js

Weekly Downloads

0

Version

0.9.5

License

MIT

Last publish

Collaborators

  • uupaa