javascript-allonge-six icon indicating copy to clipboard operation
javascript-allonge-six copied to clipboard

Recipes w/ Objects: Memoize Code

Open fugalfunkster opened this issue 9 years ago • 0 comments

The memoized code recipe at the bottom of page 216 (pdf version, 4/14/16) fails when combined with subsequent code samples.

I believe that the following line is the culprit: const key = JSON.stringify(this, args);

I got it working with: const key = JSON.stringify.apply(this, args);

fugalfunkster avatar Apr 15 '16 04:04 fugalfunkster