limitTo
ng
Creates a new array or string containing only a specified number of elements. The elements
are taken from either the beginning or the end of the source array or string, as specified by
the value and sign (positive or negative) of limit
.
filter:limitTo(input, limit);
Param | Type | Details |
---|---|---|
input | Arraystring | Source array or string to be limited. |
limit | stringnumber | The length of the returned array or string. If the |
Array|string | A new sub-array or substring of length |