MultiLoader-Template/node_modules/es-toolkit/dist/compat/math/max.d.ts
3944Realms 768f38fc97 feat: 可使用的构建模板
修改了脚本,使其可以推给Maven仓库
2026-05-03 13:02:19 +08:00

11 lines
438 B
TypeScript

/**
* Finds the element in an array that has the maximum value.
*
* @template T - The type of elements in the array.
* @param {ArrayLike<T> | null | undefined} [items] - The array of elements to search. Defaults to an empty array.
* @returns {T | undefined} - The element with the maximum value, or undefined if the array is empty.
*/
declare function max<T>(items: ArrayLike<T> | null | undefined): T | undefined;
export { max };