take the lowest number until number get largest value javascript code example Example: javascript minimum number in array const min = arr => Math.min(...arr);