@iota-pico/core
Version:
IOTA Pico Framework Core
30 lines (29 loc) • 1.07 kB
TypeScript
/**
* Number helper methods.
*/
export declare class NumberHelper {
/**
* Is the value an integer.
* @param value Object to test for its integerness.
* @returns True if the object is a integer.
*/
static isInteger(value: any): value is Number;
/**
* Is the value a number.
* @param value Object to test for its numberyness.
* @returns True if the object is a number.
*/
static isNumber(value: any): value is Number;
/**
* Is the value a float number formatted as a string, can be used for big numbers that would overflow parseFloat.
* @param value The value to check
* @returns True if the number is formatted correctly.
*/
static isFloatString(value: string): boolean;
/**
* Is the value a integer number formatted as a string, can be used for big numbers that would overflow parseInt.
* @param value The value to check
* @returns True if the number is formatted correctly.
*/
static isIntegerString(value: string): boolean;
}