I think the idea of having my own methods imported into the javascript native objects is very good.
As for example:
String.prototype.hello = function(){
return this.toString() + ' hello';
}
'Say '.hello() // say hello
Number.prototype.add = function(){
return this + 1;
}
(1).add() // 2
But is this practice recommended?
Is there any disadvantage in doing this? Or would it be a better practice to create my own object?