UNPKG

nyks

Version:

nodejs exupery style

14 lines (11 loc) 220 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; };