1.0.2 • Published 10 years ago

@micro-js/throttle-intervaled v1.0.2

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

throttle-intervaled

Build status Git tag NPM version Code style

A throttle that only fires on an interval.

Installation

$ npm install @micro-js/throttle-intervaled

Usage

var throttle = require('@micro-js/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

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago

0.1.1

10 years ago