Comment Comment by zodiakzz That's already built in to the language: let logNow = log.bind(null, new Date()); // [sic, "now" is fixed] let debugNow = logNow.bind(null, "DEBUG"); Also, uglifiers and transpilers do some horrifying stuff, this won't break if fn.length is tempered with. Unlike the article implementation. parent zodiakzz 5 years ago