/** * 对象类型判断 * @category Base */ export const isType = (type: string) => (val): val is K => Object.prototype.toString.call(val) === `[object ${type}]`;