setTimeout, but with arguments reversed.
npm install call-delayedsetTimeout, but with arguments reversed.
It gets tiring to write
``javascript`
function delay(time,fn) {setTimeout(fn,time)}
You'll get some nice assertions as a bonus.
`javascript``
var delay = require("call-delayed")
delay(100, function{ console.log("Execution of this function has been delayed by 100ms.")})
call-delayed is released under the MIT License.
Copyright (c) 2017 Braveg1rl