Solution
Code


# Code
```javascript []
var cancellable = function(fn, args, t){
    fn(...args);
    const intervalId = setInterval(()=>{
        fn(...args);
    }, t);

    return function cancleFn(){
        clearInterval(intervalId);
    }
};

```
['JavaScript']