Skip to main content
Module

x/lodash_es/mod.ts>max

lodash for deno use
Latest
function max
import { max } from "https://deno.land/x/lodash_es@v0.0.2/mod.ts";

Computes the maximum value of array. If array is empty or falsey, undefined is returned.

Examples

_.max([4, 2, 8, 6]); // => 8

_.max([]); // => undefined

Parameters

array

The array to iterate over.