Functions
btoa
- btoa(bytes: Bytes): string
bytesToString
- bytesToString(bytes: Bytes): string
deepCopy
- deepCopy(value: any): any
deepEquals
- deepEquals(a: any, b: any): boolean
Parameters
Returns boolean
escapeHtml
- escapeHtml(s: string): string
failf
- failf(f: string, ...args: any[]): void
Parameters
f: string
Rest ...args: any[]
Returns void
go
- go(f: (() => void)): void
isType
- isType(value: any, typeName: string): boolean
Parameters
value: any
typeName: string
Returns boolean
once
- once(name: string, f: (() => void)): void
Parameters
name: string
f: (() => void)
Returns void
sprintf
- sprintf(f: string, ...args: any[]): string
Parameters
f: string
Rest ...args: any[]
Returns string
stringToBytes
- stringToBytes(s: string): Bytes
unescapeHtml
- unescapeHtml(s: string): string
url
- url(config: { fragment?: string; host?: string; password?: string; path?: string; port?: number; query?: {}; scheme?: string; username?: string }): string
Parameters
config: { fragment?: string; host?: string; password?: string; path?: string; port?: number; query?: {}; scheme?: string; username?: string }
Optional fragment?: string
Optional host?: string
Optional password?: string
Optional path?: string
Optional port?: number
Optional query?: {}
[key: string]: string | string[]
Optional scheme?: string
Optional username?: string
Returns string