Options
All
  • Public
  • Public/Protected
  • All
Menu

Module addSuffix

Index

References

Functions String

References

Renames and re-exports addSuffix

String Functions

  • addSuffix(str?: string, suffix?: string): string
  • add suffix to string

    since

    5.14.0

    see

    addPrefix

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

    Parameters

    • str: string = ""

      to be processed string

    • suffix: string = ""

      prefix string

    Returns string