30 Days of Javascript 14 - Execute Cancellable Function With Delay
Given a function fn, an array or arguments args, and a timeout t in milliseconds, return a cancel function cancelFn.
Given a function fn, an array or arguments args, and a timeout t in milliseconds, return a cancel function cancelFn.
Promise
Given a positive integer millis, write an asynchronous function that sleeps for millis milliseconds. It can resolve any value.
Array methods
Given two promises promise1 and promise2, return a new promise. promise1 and promise2 will both resolve with a number. The returned promise should resolve wi...