UNPKG

everyutil

Version:

A comprehensive library of lightweight, reusable utility functions for JavaScript and TypeScript, designed to streamline common programming tasks such as string manipulation, array processing, date handling, and more.

9 lines (8 loc) 286 B
/** * Group by inferred "semantic" types. * @author @dailker * @param {any[]} array * @param {(item: any) => string} [typeFn] * @returns {Record<string, any[]>} */ export declare function semanticGroup(array: any[], typeFn?: (item: any) => string): Record<string, any[]>;