es-toolkit
Version:
A state-of-the-art, high-performance JavaScript utility library with a small bundle size and strong type annotations.
11 lines • 432 B
TypeScript
//#region src/compat/math/min.d.ts
/**
* Finds the element in an array that has the minimum value.
*
* @template T - The type of elements in the array.
* @param [items] - The array of elements to search. Defaults to an empty array.
* @returns The element with the minimum value, or undefined if the array is empty.
*/
declare function min<T>(items: ArrayLike<T> | null | undefined): T | undefined;
//#endregion
export { min };