Skip to content

Commit 1f77d5f

Browse files
gkalpaknetman92
authored andcommitted
docs(limitToFilter): mark the begin param as optional
Closes angular#11094
1 parent b48474c commit 1f77d5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ng/filter/limitTo.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* If the number is negative, `limit` number of items from the end of the source array/string
1818
* are copied. The `limit` will be trimmed if it exceeds `array.length`. If `limit` is undefined,
1919
* the input will be returned unchanged.
20-
* @param {string|number} begin Index at which to begin limitation. As a negative index, `begin`
20+
* @param {(string|number)=} begin Index at which to begin limitation. As a negative index, `begin`
2121
* indicates an offset from the end of `input`. Defaults to `0`.
2222
* @returns {Array|string} A new sub-array or substring of length `limit` or less if input array
2323
* had less than `limit` elements.

0 commit comments

Comments
 (0)