Options
All
  • Public
  • Public/Protected
  • All
Menu

Module Array

Index

Functions

Functions

mapToObject

  • mapToObject<T>(input: string[], mapFunc: function): object
  • Gets an input array and maps it to an object where the property keys correspond to the array elements and the property values are defiend by mapFunc.

    Type parameters

    • T

    Parameters

    • input: string[]
    • mapFunc: function
        • (element: string): T
        • Parameters

          • element: string

          Returns T

    Returns object

    • [key: string]: T

Generated using TypeDoc