solution
Code
# Code
```js []
/**
 * @param {Function} fn
 * @param {Array} args
 * @param {number} t
 * @return {Function}
 */


var cancellable = (callback, args, t)=>{
        callback(...args);
        let timeout = setInterval(() => {
            callback(...args);
        }, t);
        return ()=>clearInterval(timeout);

}

```
['JavaScript']