Skip to content

Commit 09ffb0d

Browse files
parthodas23Witty-31-06
authored andcommitted
chore: fix JavaScript lint errors (issue stdlib-js#10501)
PR-URL: stdlib-js#10502 Closes: stdlib-js#10501 Reviewed-by: Philipp Burckhardt <pburckhardt@outlook.com>
1 parent cdc0e5e commit 09ffb0d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • lib/node_modules/@stdlib/utils/memoize/lib

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)