/** * @dynamic is used because this class contains static properties */ /** * For checking data types */ export declare class IsDataTypeUtil { /** * Check for string * * (new string) typeof will return object, so check for that with instanceof * * @param value value to test */ static IsString(value: any): boolean; /** * Check for number * * More than 'number' will be returned, like: 'NaN' and 'Infinity,' so to be sure * a value is a number use the function isFinite() * * @param value value to test */ static IsNumber(value: any): boolean; /** * Check for array * * An array is returned as an object, to check if it's really an array * its constructor can be compared to 'Array.' * * ES5 has a method for this: Array.isArray(value) * * @param value value to test */ static IsArray(value: any): boolean; /** * Check for function * * @param value value to test */ static IsFunction(value: any): boolean; /** * Check for Object * * A lot of items can be objects, so to test that an item can have * properties and be looped through, compare its constructor with 'Object.' * * @param value value to test */ static IsObject(value: any): boolean; /** * Check for null * * @param value value to test */ static IsNull(value: any): boolean; /** * Check for undefined * * @param value value to test */ static IsUndefined(value: any): boolean; /** * Check for boolean * * @param value value to test */ static IsBoolean(value: any): boolean; /** * Check for regex * * RegEx's are object, so check against its constructor * * @param value value to test */ static IsRegEx(value: any): boolean; /** * Check for Date * * Date ins't really a data type in JS, so to check a Date Object use 'instanceof.' * * @param value value to test */ static IsData(value: any): boolean; /** * Check for Symbol * * New datatype in ES6 * * @param value value to test */ static IsSymbol(value: any): boolean; /** * Find out what kind of datatype you have * * @param value value to test */ static GetDataType(value: any): string; } //# sourceMappingURL=is-data-type.util.d.ts.map