Methods
Static browserOrNode
-
Returns object
-
isBrowser: boolean
-
isNode: boolean
Static filenameToContentType
- filenameToContentType(filename: any, defVal?: string): string
-
Parameters
-
filename: any
-
Default value defVal: string = "application/octet-stream"
Returns string
Static generateRandomString
- generateRandomString(): string
Static isEmpty
- isEmpty(obj: any): boolean
-
Parameters
Returns boolean
Static isTextFile
- isTextFile(contentType: any): boolean
-
Parameters
Returns boolean
Static makeQuerablePromise
- makeQuerablePromise(promise: any): any
Static objectLessAttributes
- objectLessAttributes(obj: any, less: any): any
Static sortByField
- sortByField(list: any, field: any, dir: any): boolean
-
Parameters
-
list: any
-
field: any
-
dir: any
Returns boolean
generate random string