Warning: Parameter 1 to wp_default_scripts() expected to be a reference, value given in /var/www/whoknew.dk/public_html/wp-includes/plugin.php on line 601

Warning: Parameter 1 to wp_default_styles() expected to be a reference, value given in /var/www/whoknew.dk/public_html/wp-includes/plugin.php on line 601
Basic | Jacob T. Nielsen

JavaScript function memoization

I have previously written about JavaScript functions having properties. I provided a fairly simple example of how this works. Another way this can be utilized is when doing function memoization. Memoization optimizes speed of function execution by avoiding repeating calculations for previously passed inputs. This means that a memoized function remembers the computed result for […]