We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc8c008 commit ae3b935Copy full SHA for ae3b935
lib/node_modules/@stdlib/utils/memoize/lib/main.js
@@ -87,9 +87,9 @@ function memoize( fcn, hashFunction ) {
87
var out;
88
var key;
89
var i;
90
- args = new Array( arguments.length );
+ args = [];
91
for ( i = 0; i < arguments.length; i++ ) {
92
- args[ i ] = arguments[ i ];
+ args.push( arguments[ i ] );
93
}
94
key = toKey( args ).toString();
95
if ( hasOwnProp( cache, key ) ) {
0 commit comments