dezony
v1.0.0
Published
Run a function once.
Downloads
3
Readme
dezony
Run a JavaScript function once.
Getting started
npm install dezony
var dezony = require('dezony');
or
<script src="node_modules/dezony/index.js"></script>
var dezony = window.dezony
Usage
// here is a an example of a zony function
// calls back multiple time
function zony (cb) {
cb()
cb()
}
delay(cb) // release zony
zony(dezony(function () {
console.log('called once')
}))
Example
See example.js
Benchmark
See benchmark
Test
npm install standard
npm test