how to get min and max in array of objects javascript code example Example: max value array of object javascript Math.max(...arr.map(o => o.value));