|
Last change
on this file since a762898 was a762898, checked in by istevanoska <ilinastevanoska@…>, 6 months ago |
|
Added visualizations
|
-
Property mode
set to
100644
|
|
File size:
438 bytes
|
| Rev | Line | |
|---|
| [a762898] | 1 | /**
|
|---|
| 2 | * Finds the element in an array that has the maximum value.
|
|---|
| 3 | *
|
|---|
| 4 | * @template T - The type of elements in the array.
|
|---|
| 5 | * @param {ArrayLike<T> | null | undefined} [items] - The array of elements to search. Defaults to an empty array.
|
|---|
| 6 | * @returns {T | undefined} - The element with the maximum value, or undefined if the array is empty.
|
|---|
| 7 | */
|
|---|
| 8 | declare function max<T>(items: ArrayLike<T> | null | undefined): T | undefined;
|
|---|
| 9 |
|
|---|
| 10 | export { max };
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.