UNPKG

conditional-helpers

Version:

A collection of JavaScript helper functions to be used in conditional logic within projects

18 lines (17 loc) 1.06 kB
export declare const isArray: (value: any) => value is any[]; export declare const isString: (value: any) => value is string; export declare const isFunction: (value: any) => value is Function; export declare const isObject: (value: any) => value is object; export declare const hasLength: (arg: any) => boolean; export declare const isBoolean: (value: any) => value is boolean; export declare const isDate: (value: any) => value is Date; export declare const isNumber: (value: any) => value is number; export declare const isObjectEmpty: (value: any) => boolean; export declare const isStringHasLength: (value: any) => boolean; export declare const isStringEmpty: (value: any) => boolean; export declare const isArrayHasLength: (value: any) => boolean; export declare const isArrayEmpty: (value: any) => boolean; export declare const isObjectHasProps: (value: any) => boolean; export declare const isBooleanTruthy: (value: any) => boolean; export declare const isBooleanFalsey: (value: any) => boolean; export declare const isHTML: (value: any) => boolean;