GitHub

daffArrayToDict

import { daffArrayToDict } from '@daffodil/core'

Converts an array into a dictionary. Dictionary values are keyed by the return of the specified getKey.

const daffArrayToDict: __function