Options
All
  • Public
  • Public/Protected
  • All
Menu

Class JS

Hierarchy

  • JS

Index

Methods

Static browserOrNode

  • browserOrNode(): object

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

Static isTextFile

  • isTextFile(contentType: any): 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