Skip to content

Commit 09b683e

Browse files
committed
Auto-generated commit
1 parent 7a2f397 commit 09b683e

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
<section class="release" id="unreleased">
66

7-
## Unreleased (2025-12-05)
7+
## Unreleased (2025-12-06)
88

99
<section class="features">
1010

@@ -646,6 +646,7 @@ A total of 36 issues were closed in this release:
646646

647647
<details>
648648

649+
- [`356e8a0`](https://github.com/stdlib-js/stdlib/commit/356e8a0f15db7f18f8be83272401dc90de4cc1a0) - **docs:** use boolean typed array in example _(by Philipp Burckhardt)_
649650
- [`493f0c2`](https://github.com/stdlib-js/stdlib/commit/493f0c2fe4ce47b5ea8e5fedd81ef68d028b83f9) - **feat:** update `ndarray` TypeScript declarations _(by Philipp Burckhardt)_
650651
- [`bf3b1ce`](https://github.com/stdlib-js/stdlib/commit/bf3b1ce6e981dc77af2a82a5936ac80b3d029e79) - **docs:** fix TSDoc return annotation _(by Philipp Burckhardt)_
651652
- [`53295ce`](https://github.com/stdlib-js/stdlib/commit/53295ce482ae3c95cc80afd5295acbc9f2a476eb) - **feat:** update `ndarray/base` TypeScript declarations _(by Philipp Burckhardt)_

flatten-by/docs/types/index.d.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -192,14 +192,14 @@ declare function flattenBy<T extends ComplexLike = ComplexLike, U extends typedn
192192
* var strides = [ 2, 2, 1 ];
193193
* var offset = 0;
194194
*
195-
* var x = ndarray( 'uint8c', buffer, shape, strides, offset, 'row-major' );
195+
* var x = ndarray( 'bool', buffer, shape, strides, offset, 'row-major' );
196196
* // returns <ndarray>
197197
*
198198
* var y = flattenBy( x, invert );
199199
* // returns <ndarray>
200200
*
201201
* var arr = ndarray2array( y );
202-
* // returns [ 0, 1, 0, 1, 0, 1 ]
202+
* // returns [ false, true, false, true, false, true ]
203203
*/
204204
declare function flattenBy<T extends typedndarray<boolean> = typedndarray<boolean>, ThisArg = unknown>( x: T, fcn: Callback<boolean, T, boolean, ThisArg>, thisArg?: ThisParameterType<Callback<boolean, T, boolean, ThisArg>> ): T;
205205

@@ -340,7 +340,7 @@ declare function flattenBy<T extends ComplexLike = ComplexLike, U extends typedn
340340
* var strides = [ 2, 2, 1 ];
341341
* var offset = 0;
342342
*
343-
* var x = ndarray( 'uint8c', buffer, shape, strides, offset, 'row-major' );
343+
* var x = ndarray( 'bool', buffer, shape, strides, offset, 'row-major' );
344344
* // returns <ndarray>
345345
*
346346
* var opts = {
@@ -351,7 +351,7 @@ declare function flattenBy<T extends ComplexLike = ComplexLike, U extends typedn
351351
* // returns <ndarray>
352352
*
353353
* var arr = ndarray2array( y );
354-
* // returns [ 0, 1, 0, 1, 0, 1 ]
354+
* // returns [ false, true, false, true, false, true ]
355355
*/
356356
declare function flattenBy<T extends typedndarray<boolean> = typedndarray<boolean>, ThisArg = unknown>( x: T, options: BaseOptions, fcn: Callback<boolean, T, boolean, ThisArg>, thisArg?: ThisParameterType<Callback<boolean, T, boolean, ThisArg>> ): T;
357357

0 commit comments

Comments
 (0)