Functions
combinePath
Section titled “combinePath”Adds two paths and returns the result Correctly processes leading and trailing slashes
▸ combinePath(path1: string,path2: string): string
Parameters:
Section titled “Parameters:”- path1:
string - path2:
string-
Returns string
repeatString
Section titled “repeatString”▸ repeatString(str: string,times: number): string
Parameters:
Section titled “Parameters:”- str:
string - times:
number
Returns string
reverseString
Section titled “reverseString”▸ reverseString(str: string): string
Parameters:
Section titled “Parameters:”- str:
string
Returns string
strEndsWith
Section titled “strEndsWith”▸ strEndsWith(str: string,symbol: string): boolean
Parameters:
Section titled “Parameters:”- str:
string - symbol:
string
Returns boolean