Call Once
Limit dangerous function calls.
Install
$ npm install call-once
Usage
// Simple usagevar callOnce = var wrapped = // => true // => undefined
// Blocking and unblocking wrapped functionsvar callOnce = var setup = powerPlant president president
Note: in reality this is more useful for stuff like promise resolutions on a timeout