Function toThousands

  • Digital thousandths division

    Parameters

    • num: string | number

      input number

    Returns string

    • the split string
    toThousands(10000000222)
    // 10,000,000,222

    toThousands(100.2232323)
    // 100.2232323

    toThousands(null)
    // ''

    3.0.0