xe-utils icon indicating copy to clipboard operation
xe-utils copied to clipboard

XEUtils.uniq不能去重

Open soar20 opened this issue 2 years ago • 2 comments

可复现的链接:

https://vxetable.cn/xe-utils/#/?to=uniq

问题描述与截图:

XEUtils.uniq([{a: 1, b: 11}, {a: 1, b: 22}, {a: 4, b: 33}, {a: 5, bb: 44}], 'a') 实际输出是// [{a: 1, b: 11}, {a: 1, b: 22}, {a: 4, b: 33}, {a: 5, bb: 44}],并没有去重

期望的结果:

[{a: 1, b: 11}, {a: 4, b: 33}, {a: 5, bb: 44}]

操作系统:

No response

浏览器版本:

No response

soar20 avatar Nov 11 '23 05:11 soar20

那是新版本才支持的,需要更新最新版本

xlz26296 avatar Nov 21 '23 13:11 xlz26296

怎么更新版本呀

soar20 avatar Aug 16 '24 03:08 soar20