Options
All
  • Public
  • Public/Protected
  • All
Menu

Module trimPrefix

Index

References

Functions String

References

Renames and re-exports __type

String Functions

  • trimPrefix(str: string, prefix: string): string
  • remove prefix from string

    since

    5.5.0

    see

    trimSuffix

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

    Parameters

    • str: string

      to be processed string

    • prefix: string

      prefix string

    Returns string