A JavaScript library for rich prototypes
This is a simple library designed to give a belt of good utility functions throughout your well known data types
How to use
var Rich = ;RichCore; // To apply all prototypesRichArray; // Applies only the Array prototype
npm install --save rich-js
Safety
This library try not to clash with any possible standard when naming methods. And in case it clashes, it will not override the method and will output a warn in the console.
Prefix
In case you want to prefix the new methods, you can do by:
RichUtilprefix = 'r';RichNumber; 1; //1000
Adding your own custom prototypes
RichUtil; 3;// 9
Documentation
Examples
A few examples of what this library offers
//Number prototype3;// 180000 3;// 0// 1// 2 3;// false3;// true // Object prototype prop: name: 'Test' ;// 'Test' // Array prototypea: 1 a: 1 a: 2;/*{ 1: [{a: 1}, {a: 1}], 2: [{a: 2}]}*/