Skip to content

Commit 09c6032

Browse files
authored
chore: update array allocation and example path
PR-URL: #8789 Closes: #8265 Reviewed-by: Athan Reines <kgryte@gmail.com>
1 parent 5f49874 commit 09c6032

File tree

2 files changed

+3
-3
lines changed
  • lib/node_modules/@stdlib

2 files changed

+3
-3
lines changed

lib/node_modules/@stdlib/blas/base/zscal/examples/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
var discreteUniform = require( '@stdlib/random/base/discrete-uniform' );
2222
var filledarrayBy = require( '@stdlib/array/filled-by' );
2323
var Complex128 = require( '@stdlib/complex/float64/ctor' );
24-
var zscal = require( '@stdlib/blas/base/zscal' );
24+
var zscal = require( './../lib' );
2525

2626
function rand() {
2727
return new Complex128( discreteUniform( 0, 10 ), discreteUniform( -5, 5 ) );

lib/node_modules/@stdlib/plot/components/svg/axis/lib/components/ticks.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ function render( ctx ) {
5353
transform = tickTransform( ctx._orientation, ctx._scale );
5454

5555
debug( 'Rendering ticks...' );
56-
out = new Array( values.length );
56+
out = [];
5757
for ( i = 0; i < values.length; i++ ) {
5858
debug( 'Rendering tick %d with value %s...', i, values[i] );
59-
out[ i ] = tick( ctx, values[i], transform );
59+
out.push( tick( ctx, values[i], transform ) );
6060
}
6161
debug( 'Finished rendering ticks.' );
6262
return out;

0 commit comments

Comments
 (0)