Skip to content

min

Returns the smallest value from a list.

Usage

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

Installation

Terminal window
npx atmx add helper min