Last Updated: February 25, 2016
·
573
· johnstrong

fun with setTimeout

A simple asynchronous javascript function. Takes a function and wraps it in a setTimeout.

var async = function(fn) { setTimeout(fn, 0) }