Variable: default
const default: object;
Type declaration
env
env: object;
env.getBrowser()
getBrowser: () => object;
Returns
object
firefox
firefox: boolean;
ie
ie: boolean;
safari
safari: boolean;
env.getDevice()
getDevice: () => object;
Returns
object
android
android: boolean;
ios
ios: boolean;
env.getMouseCoords()
getMouseCoords: (e) => object;
Parameters
Parameter | Type |
---|---|
e | any |
Returns
object
x
x: number;
y
y: number;
env.getUserAgent()
getUserAgent: () => string;
Returns
string
env.isMac()
isMac: () => boolean;
Returns
boolean
env.isPhone()
isPhone: () => boolean;
Returns
boolean
files
files: object;
files.getFileType()
getFileType: (url) => "JS" | "CSS" | "Unknown";
Parameters
Parameter | Type |
---|---|
url | any |
Returns
"JS"
| "CSS"
| "Unknown"
files.loadFile()
loadFile: (file) => Promise<unknown>;
Parameters
Parameter | Type |
---|---|
file | any |
Returns
Promise
<unknown
>
files.loadFiles()
loadFiles: (files) => Promise<any[]>;
Parameters
Parameter | Type |
---|---|
files | any |
Returns
Promise
<any
[]>
funcs
funcs: object;
funcs.deepMerge()
deepMerge: <T, U>(target, source) => T & U<T, U, V>(target, middle, source) => T & U & V;
Type Parameters
Type Parameter |
---|
T |
U |
Parameters
Parameter | Type |
---|---|
target | T |
source | U |
Returns
T
& U
Type Parameters
Type Parameter |
---|
T |
U |
V |
Parameters
Parameter | Type |
---|---|
target | T |
middle | U |
source | V |
Returns
T
& U
& V
funcs.geocode()
geocode: (query, callback) => boolean;
Parameters
Parameter | Type |
---|---|
query | any |
callback | any |
Returns
boolean
funcs.getNestedValue()
getNestedValue: (obj, path) => any;
Parameters
Parameter | Type |
---|---|
obj | any |
path | any |
Returns
any
funcs.splitObjectAndField()
splitObjectAndField: (fields) => object;
Parameters
Parameter | Type |
---|---|
fields | string |
Returns
object
field
field: string;
object
object: string;
funcs.throttle()
throttle: (method, delay, scope, params) => void;
Parameters
Parameter | Type |
---|---|
method | any |
delay | any |
scope | any |
params | any |
Returns
void
http
http: object;
http.handleFailedRequest()
handleFailedRequest: (response) => void;
Parameters
Parameter | Type |
---|---|
response | any |
Returns
void
numbers
numbers: object;
numbers.compareVersions()
compareVersions: (v1, v2) => -1 | 0 | 1;
Parameters
Parameter | Type |
---|---|
v1 | any |
v2 | any |
Returns
-1
| 0
| 1
numbers.isNumber()
isNumber: (n) => boolean;
Parameters
Parameter | Type |
---|---|
n | any |
Returns
boolean
numbers.parseBoolean()
parseBoolean: (string) => boolean;
Parameters
Parameter | Type |
---|---|
string | any |
Returns
boolean
strings
strings: object;
strings.convertToText()
convertToText: (obj) => any;
Parameters
Parameter | Type |
---|---|
obj | any |
Returns
any
strings.fixColorHash()
fixColorHash: (color) => string;
Parameters
Parameter | Type |
---|---|
color | string |
Returns
string
strings.functionFromString
functionFromString: Object;
strings.removeLeadingSlash()
removeLeadingSlash: (str) => any;
Parameters
Parameter | Type |
---|---|
str | any |
Returns
any
strings.safeURL()
safeURL: (url) => any;
Parameters
Parameter | Type |
---|---|
url | any |
Returns
any
strings.toSnakeCase()
toSnakeCase: (str) => string;
Parameters
Parameter | Type |
---|---|
str | string |
Returns
string
strings.ucfirst()
ucfirst: (string) => any;
Parameters
Parameter | Type |
---|---|
string | any |
Returns
any