Function addPrefix

  • add prefix to string

    Parameters

    • str: string = ""

      to be processed string

    • prefix: string = ""

      prefix string

    Returns string

    5.14.0

    [[addSuffix]]

    addPrefix("123456", "123")
    // => '123456'
    addPrefix("456", "123")
    // => '123456'