@multi-kit/inspect
Version:
This library provides core functionalities for determining the type of a given object, supporting various JavaScript data types.
27 lines (26 loc) • 939 B
TypeScript
/**
* 类型判断函数
* @author Wang LiZhi
* @param { sting } type 要判断的类型
* @param { unknown } target 需要进行类型判断的目标对象
* @returns { boolean } 返回类型判断结果
*/
export declare function isType(type: string, target: unknown): boolean;
export declare const isString: any;
export declare const isNumber: any;
export declare const isBoolean: any;
export declare const isNull: any;
export declare const isUndefined: any;
export declare const isSymbol: any;
export declare const isBigInt: any;
export declare const isArray: any;
export declare const isObject: any;
export declare const isFunction: any;
export declare const isAsyncFunction: any;
export declare const isDate: any;
export declare const isRegExp: any;
export declare const isSet: any;
export declare const isMap: any;
export declare const isWeakSet: any;
export declare const isWeakMap: any;
export declare const isPromise: any;