Working with collections

Ember makes array manipulation smarter using a set of core collection classes, shown in the following table. Each of these provide many convenient methods that abstract complex array manipulation:

Collection type

Description

Ember.Array

This is an abstract implementation of observer-friendly array-like behavior. Concrete implementations are expected to have implemented methods, such as length() and objectAt(). Notable convenient methods are any(), every(), filter(), filterBy(), find(), findBy(), forEach(), getEach(), map(), mapBy(), objectAt(), replace(), reverse(), sortBy, without(), and so on.

Ember.ArrayProxy

ArrayProxy wraps objects that implement Ember.Array for binding use cases and swapping content while ...

Get Spring MVC: Designing Real-World Web Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.