Array methods inspired by Groovy's collection methods and written in a closure way with coffeescript.
This module adds new methods in Javascript Array class if not found...
unless Array::remove
Array::remove = (fn) ->
...
array = [{username:"me"},{username:"meToo"},{username:"meOfCourse"}]
array.remove (player) -> player.username == "meToo"
Clone / download array-util from github.
In nodejs environnement simply add:
arrayUtil = require "path/to/array-util"
See unit tests to know how to use it.
Tests are written with nodeunit.
Feel free to fork and improve ;)