camote-utils
Version:
A comprehensive TypeScript utility library featuring advanced string and number formatting, data structures, and algorithms
22 lines (21 loc) • 1.38 kB
TypeScript
export declare const isNil: (value: any) => value is null | undefined;
export declare const isEmpty: (value: any) => boolean;
export declare const isNumber: (value: any) => value is number;
export declare const isString: (value: any) => value is string;
export declare const isArray: <T>(value: any) => value is T[];
export declare const isObject: (value: any) => value is object;
export declare const isUrl: (str: string) => boolean;
export declare const isUuid: (str: string) => boolean;
export declare const contains: (str: string, substring: string, caseSensitive?: boolean) => boolean;
export declare const exactly: (str: string, match: string, caseSensitive?: boolean) => boolean;
export declare const isBoolean: (value: any) => value is boolean;
export declare const isFunction: (value: any) => value is Function;
export declare const isDataView: (value: any) => value is DataView;
export declare const isNaN: (value: any) => boolean;
export declare const isNull: (value: any) => value is null;
export declare const isUndefined: (value: any) => value is undefined;
export declare const isFinite: (value: any) => boolean;
export declare const isAlphanumeric: (str: string) => boolean;
export declare const isEmail: (str: string) => boolean;
export declare const isStrongPassword: (password: string) => boolean;
export declare const isValidTime: (timeString: string) => boolean;