node package manager

fd-timeout

fd-timeout

Build Status npm version

window.setTimeout FP-style

Installation

npm install fd-timeout --save

Usage

var timeout = require('fd-timeout');
 
var after2s = timeout(2000);
 
after2s(function() {
  alert('FP rocks');
});