Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Functions

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

    Type parameters

    • T

    Parameters

    • m: undefined | Map<string, T>

    Returns {}

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

    Type parameters

    • T

    Parameters

    • m: undefined | Map<string, T>

    Returns {} | undefined