procrastination
⏳ I'll describe it later
const { wrap } = require('procrastination');
let count = 0;
const once = wrap(function() {
return ++count;
});
once(); // 1
once(); // 1
once
call count is 1
⏳ I'll describe it later
const { wrap } = require('procrastination');
let count = 0;
const once = wrap(function() {
return ++count;
});
once(); // 1
once(); // 1
once
call count is 1
npm i procrastination
2
0.0.0
MIT
2.95 kB
5