Function joinArraysOnKeys

  • Join two arrays by a common column, selecting which data to extract.

    Parameters

    • mainTable: any[]

      the main array

    • lookupTable: any[]

      the lookup array

    • mainKey: string

      mainTable's column for the join condition

    • lookupKey: string

      lookupTable's column for the join condition

    • selectFunction: ((attrMainTable, attrLookupTable) => any[])

      defines which attributes we want to retain in the joined array; null values generated by the function are ignored

        • (attrMainTable, attrLookupTable): any[]
        • Parameters

          • attrMainTable: string
          • attrLookupTable: string

          Returns any[]

    Returns any[]

    the joined array

Generated using TypeDoc