Options
All
  • Public
  • Public/Protected
  • All
Menu

Module trimSuffix

Index

References

Functions String

References

Renames and re-exports __type

String Functions

  • trimSuffix(str: string, suffix: string): string
  • remove suffix from string

    since

    5.5.0

    see

    trimPrefix

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

    Parameters

    • str: string

      to be processed string

    • suffix: string

      string

    Returns string