Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • NumericUtils

Index

Methods

Static generateRandomInteger

  • generateRandomInteger(min: number, max: number): number
  • Parameters

    • min: number
    • max: number

    Returns number

    A random integer value between min and max

Static getNumeric

  • getNumeric(value: any): number
  • Parameters

    • value: any

    Returns number

    number The numeric type representation from the given value. For example, a string '0001' will return 1

Static isInteger

  • isInteger(value: any): boolean
  • Parameters

    • value: any

    Returns boolean

    true if the given value is a numeric integer or represents a a numeric integer value, false otherwise

Static isNumeric

  • isNumeric(value: any): boolean
  • Parameters

    • value: any

    Returns boolean

    true if the given value is numeric or represents a numeric value, false otherwise

Generated using TypeDoc