I have seen some people regard extending the natives prototypes in Javascript with disdain. I was thinking about doing it, because of syntactic convenience. I.e.
function(array, element)
can be more cumbersome to write and less readable than
array.function(element)
But the second can only be acheived (AFAIK) by extending the Array
prototype. Is there something wrong with extending native prototypes, and will doing this somehow haunt be me later?