DEV Community

Discussion on: What’s your alternative solution? Challenge #51

Collapse
 
jacksoncurrie profile image
Jackson Currie • Edited
const findMax = x => Math.max(...x.flat(Infinity))
Collapse
 
miketalbot profile image
Mike Talbot ⭐

See I forget flat is in there. Nice.