📅  最后修改于: 2022-03-11 14:56:52.844000             🧑  作者: Mango
代码示例1
var oldestUser = users.reduce((currentUser, nextUser) => currentUser['age'] > nextUser['age'] ? currentUser : nextUser)