UNPKG

apphouse

Version:

Component library for React that uses observable state management and theme-able components.

7 lines (6 loc) 241 B
/** * Converts an array in to an object with the id as the key. * @param arr the array of objects * @returns object with the id as the key */ export declare function fromArray(arr: any[], idKey?: string, valueKey?: 'all' | string): any;