🌈 搜索
📅  最后修改于: 2022-03-11 15:04:27.593000             🧑  作者: Mango
function hasDuplicates(array) { return (new Set(array)).size !== array.length; }