Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.
/ array-util Public archive

Collection of Groovy like array manipulation functions in coffee script.

License

Notifications You must be signed in to change notification settings

amallo/array-util

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

array-unit

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) ->
  ...

Examples

array = [{username:"me"},{username:"meToo"},{username:"meOfCourse"}]
array.remove (player) -> player.username == "meToo"

Installation

Clone / download array-util from github.

Usage

In nodejs environnement simply add:

arrayUtil = require "path/to/array-util"

See unit tests to know how to use it.

Tests

Tests are written with nodeunit.

Contributing

Feel free to fork and improve ;)

About

Collection of Groovy like array manipulation functions in coffee script.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published