Options
All
  • Public
  • Public/Protected
  • All
Menu

Module utils

Index

Functions

ensureArray

  • ensureArray<T>(val: T | T[] | undefined): T[] | undefined
  • Type parameters

    • T

    Parameters

    • val: T | T[] | undefined

    Returns T[] | undefined

normalizeKey

  • normalizeKey<ObjT, KeyT>(fn: (ex: ObjT[KeyT]) => ObjT[KeyT], key: KeyT, obj: ObjT): ObjT
  • Type parameters

    • ObjT

    • KeyT: string | number | symbol

    Parameters

    • fn: (ex: ObjT[KeyT]) => ObjT[KeyT]
        • (ex: ObjT[KeyT]): ObjT[KeyT]
        • Parameters

          • ex: ObjT[KeyT]

          Returns ObjT[KeyT]

    • key: KeyT
    • obj: ObjT

    Returns ObjT

toEpochTimestamp

  • toEpochTimestamp(date: number | Date | undefined): number | undefined
  • Parameters

    • date: number | Date | undefined

    Returns number | undefined

Generated using TypeDoc