Functions
charAt
- charAt(s: string, i: number): string
charCodeAt
- charCodeAt(s: string, i: number): number
codePointAt
- codePointAt(s: string, i: number): number
concat
- concat(s: string, ...ss: string[]): string
Parameters
s: string
Rest ...ss: string[]
Returns string
endsWith
- endsWith(s: string, c: string, pos?: number): boolean
Parameters
s: string
c: string
Optional pos: number
Returns boolean
includes
- includes(s: string, n: string): boolean
Parameters
Returns boolean
indexOf
- indexOf(s: string, n: string): number
lastIndexOf
- lastIndexOf(s: string, n: string): number
localeCompare
- localeCompare(s: string, n: string, local?: string | string[], params?: object): boolean
Parameters
s: string
n: string
Optional local: string | string[]
Optional params: object
Returns boolean
match
- match(s: string, n: string | RegExp): RegExpMatchArray
Parameters
s: string
n: string | RegExp
Returns RegExpMatchArray
matchAll
- matchAll(s: string, n: RegExp): IterableIterator<RegExpMatchArray>
Parameters
Returns IterableIterator<RegExpMatchArray>
normalize
- normalize(s: string, n: "NFC" | "NFD" | "NFKC" | "NFKD"): string
Parameters
s: string
n: "NFC" | "NFD" | "NFKC" | "NFKD"
Returns string
padEnd
- padEnd(s: string, n: number, f?: string): string
Parameters
s: string
n: number
Optional f: string
Returns string
padStart
- padStart(s: string, n: number, f?: string): string
Parameters
s: string
n: number
Optional f: string
Returns string
repeat
- repeat(s: string, n: number): string
replace
- replace(s: string, n: string | RegExp, ns: string): string
Parameters
s: string
n: string | RegExp
ns: string
Returns string
search
- search(s: string, n: RegExp): number
slice
- slice(s: string, start: number, end?: number): string
Parameters
s: string
start: number
Optional end: number
Returns string
split
- split(s: string, sep: string, end?: number): string[]
Parameters
s: string
sep: string
Optional end: number
Returns string[]
startsWith
- startsWith(s: string, c?: string, pos?: number): boolean
Parameters
s: string
Optional c: string
Optional pos: number
Returns boolean
substring
- substring(s: string, start: number, end?: number): string
Parameters
s: string
start: number
Optional end: number
Returns string
toLocaleLowerCase
- toLocaleLowerCase(s: string, local: string | string[]): string
Parameters
s: string
local: string | string[]
Returns string
toLocaleUpperCase
- toLocaleUpperCase(s: string, local: string | string[]): string
Parameters
s: string
local: string | string[]
Returns string
toLowerCase
- toLowerCase(s: string): string
toString
- toString<A>(s: A): string
Type parameters
Parameters
Returns string
toUpperCase
- toUpperCase(s: string): string
trimEnd
- trimEnd(s: string): string
trimStart
- trimStart(s: string): string
valueOf
- valueOf(s: string): string