UNPKG

@utilify/core

Version:

Modern, strongly typed, and safe utility function library for JavaScript and TypeScript. Includes type checking, manipulation of arrays, objects, strings, dates, colors, numbers, regular expressions, and more. Compatible with Browser, Node.js, Deno, and B

8 lines 326 B
/** * Returns a frequency map of items in an array. * @param {any[]} arr - The array to analyze. * @returns {Record<PropertyKey, number>} The frequency map. * @throws {TypeError} If arr is not an array. */ export default function frequency(arr: any[]): Record<PropertyKey, number>; //# sourceMappingURL=frequency.d.ts.map