@exadel/esl
Version:
Exadel Smart Library (ESL) is the lightweight custom elements library that provide a set of super-flexible components
18 lines (17 loc) • 919 B
TypeScript
/** Checks that passed value is object, but not a callable-object (function) */
export declare const isObject: (obj: any) => obj is Record<string | symbol, any>;
/** Checks that passed value is an object or function */
export declare const isObjectLike: (obj: any) => boolean;
/** Checks if the passed value is primitive */
export declare const isPrimitive: (obj: any) => obj is string | number | boolean | symbol | undefined | null;
/** Checks that passed object is prototype of some class */
export declare const isPrototype: (obj: any) => boolean;
/** Array-like type definition */
export type ArrayLike<T = any> = {
[key: number]: T;
length: number;
};
/** Checks that passed object is array-like */
export declare const isArrayLike: (value: any) => value is ArrayLike;
/** Checks that passed value is a plain object */
export declare const isPlainObject: (obj: any) => obj is Record<string | symbol, any>;