1 2 3 4 5 6
export default function (fn) { return function (...args/*, callback*/) { var callback = args.pop(); fn.call(this, args, callback); }; }