This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Simple Memoization example used Closure | |
Made by: Muhammad Lahin | |
*/ | |
const myObj = {memo: {}} | |
const memo = fn => { | |
return (first_name, last_name) => { | |
let slice = Array.prototype.slice; | |
let key = JSON.stringify(slice.call(arguments)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"env": { | |
"commonjs": true, | |
"es6": true, | |
"node": true, | |
"mocha": true | |
}, | |
"plugins": [ | |
"security" | |
], |
NewerOlder