angular.Array.limitTo

Work in Progress This page is currently being revised. It might be incomplete or contain inaccuracies.

Description

Creates a new array containing only the first, or last limit number of elements of the source array.

Note: this function is used to augment the Array type in angular expressions. See angular.Array for more info.

Usage

angular.Array.limitTo(array, limit);

Parameters

Returns

Array – New array of length limit.