Changeset [629580b37a4268870f085ce539acd657796db69f] by Joe Gornick
Revision 629580b37a4268870f085ce539acd657796db69f,
committed by Joe Gornick
· February 10th, 2009 @ 01:18 AM
fusejs: Updates to Array API [#15 state:resolved] [jddalton, Joe Gornick] Note: Backwards compatibility warning. - Added Array#insert method - Renamed methods: include -> contains, uniq -> unique - Removed methods: detect, reject, reverse - Removed aliases: all, any, collect, entries, find, findAll, member, select
- Updated methods: Array#contains: Added a strict paramter for strict only comparisons.
Array#first: Add optional parameters to accept a number/iterator.
* first(n): Returns an array containing the first n of the list.
* first(iterator, [context]): Returns first item when iterator
returns true.
Array#last: Add optional parameters to accept a number/iterator.
* last(n): Returns an array containing the last n of the list.
* last(iterator, [context]): Returns last item when iterator
returns true.
Signed-off-by: John-David Dalton john.david.dalton@gmail.com http://github.com/jdalton/fusejs...