Read documentation and full api guide https://dimaslanjaka.github.io/js-prototypes/
npm
npm i git+https://github.com/dimaslanjaka/js-prototypes.gitnpm without git
npm i https://github.com/dimaslanjaka/js-prototypes/tarball/masteryarn
git config --global url."https://".insteadOf ssh://
yarn add git+https://github.com/dimaslanjaka/js-prototypes.gityarn without git
yarn add https://github.com/dimaslanjaka/js-prototypes/tarball/masterread more: http://dimaslanjaka.github.io/js-prototypes
custom source: src
insert below codes above all import
import 'js-prototypes'; // typescript
require('js-prototypes'); // javascriptall global functions and prototypes modified and included successful.
// global automated shim to all prototypes (recommended)
import "js-prototypes"
// import custom prototypes
import "js-prototypes/src/String";
import "js-prototypes/src/Array";
import "js-prototypes/src/Object";// global shim
require("js-prototypes");
// import custom prototypes
require("js-prototypes/dist/String");
require("js-prototypes/dist/Array");
// es6 supported
import "js-prototypes/dist/Object";html browser usage
<script src="https://raw.githack.com/dimaslanjaka/js-prototypes/master/dist/release/bundle.js"></script>
<script>
console.log(typeof [].addAll); // function
</script>