Variable: strings
const strings: object;
Type declaration
convertToText()
convertToText: (obj) => any;
Converts an object to a string representation.
Parameters
Parameter | Type | Description |
---|---|---|
obj | any |
Returns
any
fixColorHash()
fixColorHash: (color) => string;
Adds a hash to a color string if missing.
Parameters
Parameter | Type | Description |
---|---|---|
color | string |
Returns
string
functionFromString()
functionFromString: (string) => SyntaxError | TypeError;
Converts a string to a function.
Parameters
Parameter | Type | Description |
---|---|---|
string | string |
Returns
SyntaxError
| TypeError
Function or object {error: "error text"}
removeLeadingSlash()
removeLeadingSlash: (str) => any;
Removes a leading slash from a string.
Parameters
Parameter | Type | Description |
---|---|---|
str | any |
Returns
any
safeURL()
safeURL: (url) => any;
Normalizes a URL by removing the protocol and domain.
Parameters
Parameter | Type | Description |
---|---|---|
url | any |
Returns
any
toSnakeCase()
toSnakeCase: (str) => string;
Converts a string to snake_case.
Parameters
Parameter | Type | Description |
---|---|---|
str | string |
Returns
string
ucfirst()
ucfirst: (string) => any;
Uppercases the first character of a string.
Parameters
Parameter | Type | Description |
---|---|---|
string | any |
Returns
any