File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
lib/node_modules/@stdlib/array/bool Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -869,7 +869,7 @@ Invokes a function once for each array element.
869
869
870
870
``` javascript
871
871
function log ( v , i ) {
872
- console .log ( ' %s: %s' , i, v .toString () );
872
+ console .log ( ' %s: %s' , i . toString () , v .toString () );
873
873
}
874
874
875
875
var arr = new BooleanArray ( 3 );
@@ -897,7 +897,7 @@ To set the function execution context, provide a `thisArg`.
897
897
``` javascript
898
898
function fcn ( v , i ) {
899
899
this .count += 1 ;
900
- console .log ( ' %s: %s' , i, v .toString () );
900
+ console .log ( ' %s: %s' , i . toString () , v .toString () );
901
901
}
902
902
903
903
var arr = new BooleanArray ( 3 );
@@ -911,11 +911,6 @@ arr.set( false, 1 );
911
911
arr .set ( true , 2 );
912
912
913
913
arr .forEach ( fcn, context );
914
- /* =>
915
- 0: 1 + 1i
916
- 1: 2 + 2i
917
- 2: 3 + 3i
918
- */
919
914
920
915
var count = context .count ;
921
916
// returns 3
You can’t perform that action at this time.
0 commit comments