Tue Feb 09 2021 08:32:24 GMT+0000 (Coordinated Universal Time)
Saved by @noobj
const withLog = (fn) => { return (...args) => { console.log(`calling ${fn.name}`); return fn(...args); }; };
Copy this HTML code:
Preview:
open_in_newInstructions on embedding in Medium
Comments