@pulzar/core
Version:
Next-generation Node.js framework for ultra-fast web applications with zero-reflection DI, GraphQL, WebSockets, events, and edge runtime support
65 lines • 1.85 kB
TypeScript
/**
* Check if a value is an object (but not null, array, or primitive)
*/
export declare function isObject(value: any): value is Record<string, any>;
/**
* Check if a value is a plain object (created with {} or new Object())
*/
export declare function isPlainObject(value: any): value is Record<string, any>;
/**
* Check if a value is a function
*/
export declare function isFunction(value: any): value is Function;
/**
* Check if a value is a string
*/
export declare function isString(value: any): value is string;
/**
* Check if a value is a number
*/
export declare function isNumber(value: any): value is number;
/**
* Check if a value is a boolean
*/
export declare function isBoolean(value: any): value is boolean;
/**
* Check if a value is null or undefined
*/
export declare function isNullOrUndefined(value: any): value is null | undefined;
/**
* Check if a value is an array
*/
export declare function isArray(value: any): value is any[];
/**
* Check if a value is a Date object
*/
export declare function isDate(value: any): value is Date;
/**
* Check if a value is a RegExp object
*/
export declare function isRegExp(value: any): value is RegExp;
/**
* Check if a value is a Promise
*/
export declare function isPromise(value: any): value is Promise<any>;
/**
* Check if a value is an Error object
*/
export declare function isError(value: any): value is Error;
/**
* Check if a value is a Map
*/
export declare function isMap(value: any): value is Map<any, any>;
/**
* Check if a value is a Set
*/
export declare function isSet(value: any): value is Set<any>;
/**
* Check if a value is a Symbol
*/
export declare function isSymbol(value: any): value is symbol;
/**
* Check if a value is a BigInt
*/
export declare function isBigInt(value: any): value is bigint;
//# sourceMappingURL=isObject.d.ts.map