GitHub

daffIdentifiableArrayToDict

Helper

import { daffIdentifiableArrayToDict } from '@daffodil/core'

Transforms an array of DaffIdentifiable objects to a dictionary of those objects keyed by ID.

function daffIdentifiableArrayToDict<T extends DaffIdentifiable = DaffIdentifiable>(ary: T[]): Record<T['id'], T>

Parameters

Parameterary: T[]
Description