ff85091
1 2 3 4 5 6 7 8 9 10 11 12
#!/usr/bin/env node var once = function (fn) { var called = false; return function (...args) { if (called) { return undefined; } else { called = true; return fn(...args); } }; };