Options
All
  • Public
  • Public/Protected
  • All
Menu

Module string/endsWith

Index

References

Functions

References

Renames and re-exports endsWith

Functions

  • endsWith(postfix: string, str: string): boolean
  • endsWith(postfix: string): (str: string) => boolean
  • Checks if a string ends with the provided postfix

    example
     endsWith('c', 'abc')                //=> true
    endsWith('b', 'abc') //=> false

    Parameters

    • postfix: string
    • str: string

    Returns boolean

  • Checks if a string ends with the provided postfix

    example
     endsWith('c', 'abc')                //=> true
    endsWith('b', 'abc') //=> false

    Parameters

    • postfix: string

    Returns (str: string) => boolean

      • (str: string): boolean
      • Parameters

        • str: string

        Returns boolean

Generated using TypeDoc