🗓️ Daily LeetCoding Challenge Day 14|| 🔥 JS SOL
\n# Code\n\nvar cancellable = function(fn, args, t) {\n    fn(...args);\n    let timer = setInterval(() => fn(...args), t);\n\n    let cancelFn = () => clearInt
\n# Code\n```\nvar cancellable = function(fn, args, t) {\n    fn(...args);\n    let timer = setInterval(() => fn(...args), t);\n\n    let cancelFn = () => clearInterval(timer);\n    return cancelFn;\n};\n\n```
['JavaScript']