@w6s/sdk
Version:
WorkPlusFE JavaScript SDK.
31 lines (30 loc) • 1.08 kB
TypeScript
/**
* Checks whether given value's type is a string
* @param wat A value to be checked.
* @returns A boolean representing the result.
*/
export declare function isString(wat: unknown): boolean;
/**
* Checks whether given value's is a primitive (undefined, null, number, boolean, string)
* @param wat A value to be checked.
* @returns A boolean representing the result.
*/
export declare function isPrimitive(wat: unknown): boolean;
/**
* Checks whether given value's type is an object literal
* @param wat A value to be checked.
* @returns A boolean representing the result.
*/
export declare function isPlainObject(wat: unknown): boolean;
/**
* Checks whether given value's type is an array
* @param wat A value to be checked.
* @returns A boolean representing the result.
*/
export declare function isArray(wat: unknown): boolean;
/**
* Checks whether given value's type is a function
* @param wat A value to be checked.
* @returns A boolean representing the result.
*/
export declare function isFunction(wat: unknown): boolean;