Skip to content

Commit 7cf7a1c

Browse files
stdlib-botnakul-krishnakumar
authored andcommitted
docs: update ndarray TypeScript declaration example code
PR-URL: stdlib-js#9661 Reviewed-by: Philipp Burckhardt <pburckhardt@outlook.com> Signed-off-by: stdlib-bot <82920195+stdlib-bot@users.noreply.github.com>
1 parent add24ac commit 7cf7a1c

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

  • lib/node_modules/@stdlib/ndarray/docs/types

lib/node_modules/@stdlib/ndarray/docs/types/index.d.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1183,7 +1183,6 @@ interface Namespace {
11831183
* var isEven = require( '@stdlib/assert/is-even' ).isPrimitive;
11841184
* var Float64Array = require( '@stdlib/array/float64' );
11851185
* var ndarray = require( '@stdlib/ndarray/ctor' );
1186-
* var ndarray2array = require( '@stdlib/ndarray/to-array' );
11871186
*
11881187
* var buffer = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0 ] );
11891188
* var shape = [ 2, 3 ];
@@ -1197,10 +1196,7 @@ interface Namespace {
11971196
* 'dtype': 'generic'
11981197
* };
11991198
* var y = ns.filter( x, opts, isEven );
1200-
* // returns <ndarray>
1201-
*
1202-
* var arr = ndarray2array( y );
1203-
* // returns [ 2.0, 4.0, 8.0, 10.0 ]
1199+
* // returns <ndarray>[ 2.0, 4.0, 8.0, 10.0 ]
12041200
*/
12051201
filter: typeof filter;
12061202

0 commit comments

Comments
 (0)