Function trimPrefix

  • remove prefix from string

    Parameters

    • str: string

      to be processed string

    • prefix: string

      prefix string

    Returns string

    Since

    5.5.0

    See

    [[trimSuffix]]

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