UNPKG

nyks

Version:

nodejs exupery style

12 lines (10 loc) 207 B
"use strict"; module.exports = function(fn) { var f = function () { if (f.called) return f.value f.called = true return f.value = fn.apply(this, arguments) } f.called = false return f }