862881015
862881015
题目都看不懂,pid指父元素的id吗
``` function uniqueArray(arr) { if (!arr || (typeof arr != 'object')) return let newArr = []; arr.forEach(item => { var isExist = newArr.some(newItem => { return compareObject(item, newItem); }); if...
``` _.uniqWith([123, "meili", "123", "mogu", 123], _.isEqual); _.uniqWith([123, [1, 2, 3], [1, "2", 3], [1, 2, 3], "meili"], _.isEqual); _.uniqWith([123, {a: 1}, {a: {b: 1}}, {a: "1"}, {a: {b: 1}},...