Functions

Index

combinePath

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

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

Parameters:

  • path1: string
  • path2: string -

Returns string


repeatString

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

Parameters:

  • str: string
  • times: number

Returns string


reverseString

▸ reverseString(str: string): string

Parameters:

  • str: string

Returns string


strEndsWith

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

Parameters:

  • str: string
  • symbol: string

Returns boolean