function callback(fn) {
    return 'string' == typeof fn
        ? function (obj) {
        return obj[fn]();
    }
        : fn;
}
Convert callback `fn` to a function when a string is given.

@param {Type} name
@return {Type}
@api private