A function that returns true when an interval has elapsed
const oneSecond = hasElapsed(1000);// Keep calling to check if time has elapsed.// Will return _true_ when it hasoneSecond(); Copy
const oneSecond = hasElapsed(1000);// Keep calling to check if time has elapsed.// Will return _true_ when it hasoneSecond();
A function that returns true when an interval has elapsed