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.
869869
870870``` javascript
871871function log ( v , i ) {
872- console .log ( ' %s: %s' , i, v .toString () );
872+ console .log ( ' %s: %s' , i . toString () , v .toString () );
873873}
874874
875875var arr = new BooleanArray ( 3 );
@@ -897,7 +897,7 @@ To set the function execution context, provide a `thisArg`.
897897``` javascript
898898function fcn ( v , i ) {
899899 this .count += 1 ;
900- console .log ( ' %s: %s' , i, v .toString () );
900+ console .log ( ' %s: %s' , i . toString () , v .toString () );
901901}
902902
903903var arr = new BooleanArray ( 3 );
@@ -911,11 +911,6 @@ arr.set( false, 1 );
911911arr .set ( true , 2 );
912912
913913arr .forEach ( fcn, context );
914- /* =>
915- 0: 1 + 1i
916- 1: 2 + 2i
917- 2: 3 + 3i
918- */
919914
920915var count = context .count ;
921916// returns 3
You can’t perform that action at this time.
0 commit comments