documentcloud/backbone — Issue #702: New underscore method 'initial' missing
Author: plievone
Created: 2011-10-29 22:24:42+00:00
State: open

Current underscore methods on Backbone.Collection are:

var methods = ['forEach', 'each', 'map', 'reduce', 'reduceRight', 'find', 'detect',
'filter', 'select', 'reject', 'every', 'all', 'some', 'any', 'include',
'contains', 'invoke', 'max', 'min', 'sortBy', 'sortedIndex', 'toArray', 'size',
'first', 'rest', 'last', 'without', 'indexOf', 'lastIndexOf', 'isEmpty', 'groupBy'];

`Initial` seems to be missing unintentionally, perhaps other omissions such as suffle, compact, flatten, uniq, union, intersection, difference, zip are intentional considering the use cases of collections.