@ryusei/light
Version:
<div align="center"> <a href="https://light.ryuseijs.com"> <img alt="RyuseiLight" src="https://light.ryuseijs.com/images/svg/logo.svg" width="70"> </a>
49 lines • 1.61 kB
TypeScript
/**
* Checks if the given subject is an object or not.
*
* @param subject - A subject to check.
*
* @return `true` if the subject is an object, or otherwise `false`.
*/
export declare function isObject<T extends object>(subject: any): subject is T;
/**
* Checks if the given subject is an array or not.
*
* @param subject - A subject to check.
*
* @return `true` if the subject is an array, or otherwise `false`.
*/
export declare function isArray<T>(subject: any): subject is T[];
/**
* Checks if the given subject is a function or not.
*
* @param subject - A subject to check.
*
* @return `true` if the subject is a function, or otherwise `false`.
*/
export declare function isFunction(subject: any): subject is (...args: any[]) => any;
/**
* Checks if the given subject is a string or not.
*
* @param subject - A subject to check.
*
* @return `true` if the subject is a string, or otherwise `false`.
*/
export declare function isString(subject: any): subject is string;
/**
* Checks if the given subject is `undefined` or not.
*
* @param subject - A subject to check.
*
* @return `true` if the subject is `undefined`, or otherwise `false`.
*/
export declare function isUndefined(subject: any): subject is undefined;
/**
* Checks if the given subject is an HTMLElement instance or not.
*
* @param subject - A subject to check.
*
* @return `true` if the subject is an HTMLElement instance, or otherwise `false`.
*/
export declare function isHTMLElement(subject: any): subject is HTMLElement;
//# sourceMappingURL=type.d.ts.map