Skip to content

Commit

Permalink
docs: fix example
Browse files Browse the repository at this point in the history
  • Loading branch information
kgryte committed Jul 29, 2023
1 parent 33e8819 commit 1d3e0ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/node_modules/@stdlib/array/base/flatten4d-by/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,13 +96,13 @@ function scale( v ) {
var x = [ [ [ [ 1, 2 ] ] ], [ [ [ 3, 4 ] ] ] ];
var out = new Float64Array( 4 );

var y = flatten4dBy.assign( x, [ 2, 1, 1, 2 ], false, out, 1, 0 );
var y = flatten4dBy.assign( x, [ 2, 1, 1, 2 ], false, out, 1, 0, scale );
// returns <Float64Array>[ 2, 4, 6, 8 ]

var bool = ( y === out );
// returns true

y = flatten4dBy.assign( x, [ 2, 1, 1, 2 ], true, out, 1, 0 );
y = flatten4dBy.assign( x, [ 2, 1, 1, 2 ], true, out, 1, 0, scale );
// returns <Float64Array>[ 2, 6, 4, 8 ]
```

Expand Down

0 comments on commit 1d3e0ad

Please sign in to comment.