Skip to content

Functions

Adds two paths and returns the result Correctly processes leading and trailing slashes

▸ combinePath(path1: string,path2: string): string

  • path1: string
  • path2: string -

Returns string


▸ repeatString(str: string,times: number): string

  • str: string
  • times: number

Returns string


▸ reverseString(str: string): string

  • str: string

Returns string


▸ strEndsWith(str: string,symbol: string): boolean

  • str: string
  • symbol: string

Returns boolean