0.1.8 • Published 4 years ago

exec-once v0.1.8

Weekly downloads
33
License
MIT
Repository
github
Last release
4 years ago

Exec Once

Create a function that executes once

Examples

This code should prints 10 lines of the same number

const once = require('exec-once')
const randomOnce = once(Math.random())
for (let count = 10; count; --count) {
  console.log(randomOnce())
}

License

MIT © Hoàng Văn Khải