Options
Menu

Module ObjectHelpers

Module that provides functions related to working with javascript objects

Index

Functions

Functions

toMap

  • toMap(arr: Array<any>, index: string, decorator?: Function): any
  • Convert an array of 'things' to an object, using 'index' as the attribute name for that value

    Parameters

    • arr: Array<any>
    • index: string
    • decorator?: Function optional
      • decorator function signature
        • (any: any)
        • Parameters

          • any: any

    Returns any

Generated using TypeDoc