@web3r/flowerkit
Version:
A collection of more than 60 often used utility JS functions that simplify frontend development.
12 lines • 351 B
TypeScript
/**
* Gets max number from Array
* @param arr{Array} - source Array of numbers
* @return {number}
* @example
* // How to get max number from Array of numbers?
* const arr = [ 100, 200, 300 ];
* const max = getMaxFromArr(arr);
* console.log(max); // 300
*/
export function getMaxFromArr(arr: any[]): number;
//# sourceMappingURL=index.d.ts.map