However OMS is not valid coffeescript. I assume this is due to some coffee language update. The code either needs to be updated to current coffeescript standards and/or include a coffee compiler version specification.
(return i if o is obj) for o, i in arr
[stdin]:3:6: error: cannot use a pure statement in an expression
(return i if o is obj) for o, i in arr
^^^^^^^^
It appears this library has not been ported to support coffeescript 2.x. It compiles properly with coffeescript 1.12.7. Install with: npm install --global coffeescript@1.12.7
build script just calls $ coffee [...]
However OMS is not valid coffeescript. I assume this is due to some coffee language update. The code either needs to be updated to current coffeescript standards and/or include a coffee compiler version specification.
https://coffeescript.org/#try:%20%20p.arrIndexOf%20%3D%20(arr%2C%20obj)%20-%3E%20%0A%20%20%20%20return%20arr.indexOf(obj)%20if%20arr.indexOf%3F%0A%20%20%20%20(return%20i%20if%20o%20is%20obj)%20for%20o%2C%20i%20in%20arr%0A%20%20%20%20-1