Skip to content

Instantly share code, notes, and snippets.

View rthangam's full-sized avatar
🚀
Explore

Ramesh Thangamani rthangam

🚀
Explore
  • Hyderabad India
View GitHub Profile
function memoize(fn){
return function(){
let args = Array.prototype.slice.call(arguments);
let hash = "";
let currentArg = null;
let i = args.length;
while(i--){
currentArg = args[i];
hash += (currentArg === Object(currentArg))? JSON.stringify(currentArg):