Function isNumeric

  • Returns true if given value is strictly a numeric string value (or a number).

    isNumeric(12); //true
    isNumeric('12'); //true
    isNumeric('12.3'); //true
    isNumeric('12.3 '); //false
    isNumeric('12px'); //false

    Parameters

    • s: string | number

    Returns boolean

Generated using TypeDoc