Make a function mimic another one. This is a fork of sindresorhus/mimic-fn, but with CommonJS support.