Skip to content

Commit 413ac14

Browse files
authored
docs: update examples
PR-URL: #9358 Reviewed-by: Athan Reines <kgryte@gmail.com>
1 parent 9d54e70 commit 413ac14

1 file changed

Lines changed: 6 additions & 24 deletions

File tree

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

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

Lines changed: 6 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -139,10 +139,7 @@ interface Namespace {
139139
*
140140
* // Perform reduction:
141141
* var out = ns.any( x );
142-
* // returns <ndarray>
143-
*
144-
* var v = out.get();
145-
* // returns true
142+
* // returns <ndarray>[ true ]
146143
*
147144
* @example
148145
* var Float64Array = require( '@stdlib/array/float64' );
@@ -171,10 +168,7 @@ interface Namespace {
171168
*
172169
* // Perform reduction:
173170
* var out = ns.any.assign( x, y );
174-
* // returns <ndarray>
175-
*
176-
* var v = out.get();
177-
* // returns true
171+
* // returns <ndarray>[ true ]
178172
*/
179173
any: typeof any;
180174

@@ -675,10 +669,7 @@ interface Namespace {
675669
*
676670
* // Perform reduction:
677671
* var out = ns.countIf( x, predicate );
678-
* // returns <ndarray>
679-
*
680-
* var v = out.get();
681-
* // returns 5
672+
* // returns <ndarray>[ 5 ]
682673
*
683674
* @example
684675
* var Float64Array = require( '@stdlib/array/float64' );
@@ -711,10 +702,7 @@ interface Namespace {
711702
*
712703
* // Perform reduction:
713704
* var out = ns.countIf.assign( x, y, predicate );
714-
* // returns <ndarray>
715-
*
716-
* var v = out.get();
717-
* // returns 5
705+
* // returns <ndarray>[ 5 ]
718706
*/
719707
countIf: typeof countIf;
720708

@@ -748,10 +736,7 @@ interface Namespace {
748736
*
749737
* // Perform reduction:
750738
* var out = ns.countTruthy( x );
751-
* // returns <ndarray>
752-
*
753-
* var v = out.get();
754-
* // returns 5
739+
* // returns <ndarray>[ 5 ]
755740
*
756741
* @example
757742
* var Float64Array = require( '@stdlib/array/float64' );
@@ -780,10 +765,7 @@ interface Namespace {
780765
*
781766
* // Perform reduction:
782767
* var out = ns.countTruthy.assign( x, y );
783-
* // returns <ndarray>
784-
*
785-
* var v = out.get();
786-
* // returns 5
768+
* // returns <ndarray>[ 5 ]
787769
*/
788770
countTruthy: typeof countTruthy;
789771

0 commit comments

Comments
 (0)