What are people's thoughts about monkey patching JavaScript to make it more like Ruby?
I find myself constantly missing being able to use some of Ruby's array methods ... and the fact that you can't do "hello".reverse is just ridiculous!
It would be really nice to be able to do things like [1,2,3].any and [1,2,3].empty and [1,2,3].sum instead of using a reduce!
I know that monkey patching is more of a Ruby thing and frowned upon in JavaScript. I've heard the arguments against it, but kind of think it's worth it to have a nice experience coding in JS.
There's a library called rearmed.js that does something like this, but I'd like to have a go at writing my own.
Any thoughts?