For an ember array, you can simply do this:
array.get('firstObject');
to get the first object in the array.
or that:
array.get('lastObject');
to get the last object in the array.
How do I get something by its index? similar to how it works in a regular javascript array:
array [index];
source share