📜  lodash uniqby - 任何代码示例

📅  最后修改于: 2022-03-11 15:00:45.387000             🧑  作者: Mango

代码示例2
_.uniqBy([2.1, 1.2, 2.3], Math.floor);// => [2.1, 1.2] // The `_.property` iteratee shorthand._.uniqBy([{ 'x': 1 }, { 'x': 2 }, { 'x': 1 }], 'x');// => [{ 'x': 1 }, { 'x': 2 }]