Skip to content

max

Returns the greatest value from a list.

Usage

max([2, 3, 5]); // => 5
max([{ num: 1 }, { num: 2 }], (x) => x.num); // => { num: 2 }

Installation

Terminal window
npx atmx add helper max