Function getNumber

  • Get the number in the string

    Parameters

    • string: string

      pass in a string with a number

    Returns string

    • a pure numeric string
    getNumber('Chrome123.33')
    // '123.33'.

    getNumber('234test.88')
    // '234.88'.

    1.0.1