Skip to content

Commit ae3b935

Browse files
authored
chore: fix JavaScript lint errors (issue #10501)
PR-URL: #10502 Closes: #10501 Reviewed-by: Philipp Burckhardt <pburckhardt@outlook.com>
1 parent cc8c008 commit ae3b935

File tree

1 file changed

+2
-2
lines changed
  • lib/node_modules/@stdlib/utils/memoize/lib

1 file changed

+2
-2
lines changed

lib/node_modules/@stdlib/utils/memoize/lib/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,9 @@ function memoize( fcn, hashFunction ) {
8787
var out;
8888
var key;
8989
var i;
90-
args = new Array( arguments.length );
90+
args = [];
9191
for ( i = 0; i < arguments.length; i++ ) {
92-
args[ i ] = arguments[ i ];
92+
args.push( arguments[ i ] );
9393
}
9494
key = toKey( args ).toString();
9595
if ( hasOwnProp( cache, key ) ) {

0 commit comments

Comments
 (0)