@n3okill/utils
Version:
Many javascript helpers
13 lines (12 loc) • 505 B
TypeScript
type EqualFn = (a: any, b: any) => boolean;
type IsType = (a: unknown) => boolean;
export declare const filterFunction: Array<[IsType, EqualFn]>;
export declare function _filterFunction(a: unknown, b: unknown): boolean;
/**
* Returns the name of the constructor of the argument if it is an object, otherwise returns an empty
* string
* @param {unknown} arg - unknown
* @returns The name of the constructor of the argument.
*/
export declare function constructorName(arg: unknown): string;
export {};