Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Functions

mapToObject

  • mapToObject<T>(m: Map<string, T> | undefined): {}
  • Converts an ES6 Map to an object, returning an object with no properties if the map was empty.

    Type parameters

    • T

    Parameters

    • m: Map<string, T> | undefined

    Returns {}

    • [index: string]: T

mapToOptionalObject

  • mapToOptionalObject<T>(m: Map<string, T> | undefined): {} | undefined
  • Converts an ES6 Map to an object, returning undefined if the map was empty.

    Type parameters

    • T

    Parameters

    • m: Map<string, T> | undefined

    Returns {} | undefined