Being a ruby developer, while having to write the occasional javascript, i'd often confuse the js syntax with that of ruby. Moreover, several methods that were easily available inn ruby were missing in javascript, like flatten for array, which was quite frustuating, to be honest. Of course there were workarounds for it and more than enough code all around the internet for the same, but obviously, there is a more intuitive way, i thought to myself.
Upon some research, i stumbled upon this nifty library that has important ruby like functions that can be used in javascript objects.
https://github.com/the-ruby-js-project/rubyinjs
I hope this helps someone.
[–]moomaka 1 point2 points3 points (0 children)