Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 5cdefba

Browse files
gkalpakpkozlowski-opensource
authored andcommitted
docs(limitToFilter): mark the begin param as optional
Closes #11094
1 parent b299e73 commit 5cdefba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ng/filter/limitTo.js

Lines changed: 1 addition & 1 deletion
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)