diff --git a/lib/node_modules/@stdlib/stats/ranks/benchmark/benchmark.js b/lib/node_modules/@stdlib/stats/ranks/benchmark/benchmark.js index d6ef7b0a6ff8..05acdbfde97d 100644 --- a/lib/node_modules/@stdlib/stats/ranks/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/stats/ranks/benchmark/benchmark.js @@ -1,7 +1,7 @@ /** * @license Apache-2.0 * -* Copyright (c) 2018 The Stdlib Authors. +* Copyright (c) 2026 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -35,10 +35,10 @@ bench( pkg, function benchmark( b ) { var len; var i; - arr = new Array( 100 ); + arr = []; len = arr.length; for ( i = 0; i < len; i++ ) { - arr[ i ] = ( randu()*100.0 ) - 50.0; + arr.push( ( randu()*100.0 ) - 50.0 ); } b.tic(); diff --git a/lib/node_modules/@stdlib/stats/ranks/lib/order.js b/lib/node_modules/@stdlib/stats/ranks/lib/order.js index d4cbee935782..742818b77c67 100644 --- a/lib/node_modules/@stdlib/stats/ranks/lib/order.js +++ b/lib/node_modules/@stdlib/stats/ranks/lib/order.js @@ -1,7 +1,7 @@ /** * @license Apache-2.0 * -* Copyright (c) 2018 The Stdlib Authors. +* Copyright (c) 2026 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -52,9 +52,9 @@ function order( x ) { var arr; var i; - arr = new Array( x.length ); + arr = []; for ( i = 0; i < x.length; i++ ) { - arr[ i ] = i; + arr.push( i ); } return arr.sort( compare );