0.1.2 • Published 9 years ago

function-tools v0.1.2

Weekly downloads
10
License
MIT
Repository
github
Last release
9 years ago

view on npm npm module downloads per month Build Status Dependency Status js-standard-style

function-tools

Useful higher-order functions

Example

var f = require("function-tools")

f.throttle(f, options) ⇒ function

Guarantees a function a specified restPeriod in between invocations.

Kind: static method of function-tools

ParamTypeDescription
ffunctionthe function to throttle
optionsObjectthe options
options.restPeriodnumbera value in ms

Example

var throttled = f.throttle(myFunction, { restPeriod: 200 })
throtted() // this will only execute if at least 200ms since the last invocation

© 2015 Lloyd Brookes 75pound@gmail.com

0.1.2

9 years ago

0.1.1

10 years ago

0.1.0

10 years ago

0.0.1

10 years ago