Run a JavaScript function once.
npm install dezony
var dezony = require('dezony');
or
<script src="node_modules/dezony/index.js"></script>
var dezony = window.dezony
// 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')
}))
See example.js
See benchmark
npm install standard
npm test