@f/throttle-intervaled

1.1.1 • Public • Published

throttle-intervaled

Build status Git tag NPM version Code style

A throttle that only fires on an interval.

Installation

$ npm install @f/throttle-intervaled

Usage

var throttle = require('@f/throttle-intervaled')

var hello = throttle(500, function () {
  console.log('Hello world')
})

// will log "hello world" once, 500 ms from first call
hello()
hello()

API

throttleIntervaled(interval, fn)

  • interval - interval
  • fn - function to throttle

Returns: throttled fn

License

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.1
    3
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.1.1
    3
  • 1.1.0
    3

Package Sidebar

Install

npm i @f/throttle-intervaled

Weekly Downloads

1

Version

1.1.1

License

MIT

Last publish

Collaborators

  • f