📜  从数组打字稿代码示例中过滤最大值

📅  最后修改于: 2022-03-11 14:48:15.908000             🧑  作者: Mango

代码示例4
const max = data.reduce((prev, current) => (prev.y > current.y) ? prev : current)