Skip to content

Commit 2c9548a

Browse files
committed
Add missing default and update examples
1 parent 3255554 commit 2c9548a

File tree

1 file changed

+6
-6
lines changed
  • lib/node_modules/@stdlib/iter/strided-by/docs/types

1 file changed

+6
-6
lines changed

lib/node_modules/@stdlib/iter/strided-by/docs/types/index.d.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ type Callback = Nullary | Unary | Binary | Ternary | Quaternary;
9898
* @param iterator - input iterator
9999
* @param fcn - callback function which returns the next stride
100100
* @param offset - offset
101-
* @param eager - boolean indicating whether to eagerly advance an input iterator when provided a non-zero `offset`
101+
* @param eager - boolean indicating whether to eagerly advance an input iterator when provided a non-zero `offset` (default: false)
102102
* @param thisArg - execution context
103103
* @returns iterator
104104
*
@@ -111,7 +111,7 @@ type Callback = Nullary | Unary | Binary | Ternary | Quaternary;
111111
* return (i % 10) + 1;
112112
* }
113113
*
114-
* var iter = iterStridedBy( arr, stride, 1 );
114+
* var iter = iterStridedBy( arr, stride, 1, true );
115115
*
116116
* var r = iter.next().value;
117117
* // returns 1
@@ -198,16 +198,16 @@ declare function iterStridedBy( iterator: Iterator, fcn: Callback, offset?: numb
198198
* return (i % 10) + 1;
199199
* }
200200
*
201-
* var iter = iterStridedBy( arr, stride, 1 );
201+
* var iter = iterStridedBy( arr, stride, null );
202202
*
203203
* var r = iter.next().value;
204-
* // returns 1
204+
* // returns 0
205205
*
206206
* r = iter.next().value;
207-
* // returns 2
207+
* // returns 1
208208
*
209209
* r = iter.next().value;
210-
* // returns 4
210+
* // returns 2
211211
*
212212
* // ...
213213
*/

0 commit comments

Comments
 (0)