uupaa.extend.js
v0.9.5
Published
Mixin, Polyfill, Fallback functions.
Downloads
9
Maintainers
Readme
Extend.js
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");