Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "utils"

Index

Variables

asyncFunc

asyncFunc: FunctionConstructor | false = false

promiseImpl

promiseImpl: any = new Function('return this')().Promise

Functions

copyProps

  • copyProps<T>(toObj: T, fromObj: T, notConfig?: undefined | false | true): T
  • Type parameters

    • T

    Parameters

    • toObj: T
    • fromObj: T
    • Optional notConfig: undefined | false | true

    Returns T

hasOwnProp

  • hasOwnProp(obj: object, prop: string): boolean
  • Parameters

    • obj: object
    • prop: string

    Returns boolean

trimWS

  • trimWS(str: string, env: SqrlConfig, wsLeft: string | false, wsRight?: string | false): string
  • Parameters

    • str: string
    • env: SqrlConfig
    • wsLeft: string | false
    • Optional wsRight: string | false

    Returns string

Generated using TypeDoc