Skip to content

stagas/interval

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

interval

Function interval decorator

component-install stagas/interval

Usage

var Interval = require('interval')
Interval(fn)
var iv = fn.interval(1000)

or

var Interval = require('interval')
var intervaled = Interval.decorate(fn)
var iv = intervaled(1000)

You may also pass additional arguments:

fn.interval(1000, 'hello', ['world'])

License

MIT

About

Function interval decorator

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published