Function trimSuffix

  • remove suffix from string

    Parameters

    • str: string

      to be processed string

    • suffix: string

      string

    Returns string

    5.5.0

    [[trimPrefix]]

    trimSuffix("123456789", "789")
    // => '123456'