UNPKG

xero-hero

Version:

Heroic utilities to simplify and enable your progress with the [xero-node](https://www.npmjs.com/package/xero-node) SDK.

7 lines (4 loc) 317 B
import { PropertyOrFunction } from '../types.js'; declare const keyBy: <T extends Record<string, any>>(ar: T[], property: PropertyOrFunction<T>) => Record<string, T>; declare const groupBy: <T extends Record<string, any>>(ar: T[], property: PropertyOrFunction<T>) => Record<string, T[]>; export { groupBy, keyBy };