set-interval-n

1.0.0 • Public • Published

set-interval-n

setInterval() n times.

Installation

npm install set-interval-n

Usage

const setIntervalN = require('set-interval-n')
 
setIntervalN(i => console.log(i), 1000, n = 3)
 
// ==> 0
    // ==> 1
        // ==> 2

License

WTFPL – Do What the F*ck You Want to Public License.

Made with ❤️ by @MarkTiedemann.

Readme

Keywords

Package Sidebar

Install

npm i set-interval-n

Weekly Downloads

1

Version

1.0.0

License

WTFPL

Last publish

Collaborators

  • marktiedemann