Closed akinoccc closed 1 year ago
I think we could extract the isEqual
to a standalone utility isDeepEqual
, and another uniqueBy(array, equalFn)
to be able to compose to your goal
I think we could extract the
isEqual
to a standalone utilityisDeepEqual
, and anotheruniqueBy(array, equalFn)
to be able to compose to your goal
haha, I think so. I'll revise it later
I think we could extract the
isEqual
to a standalone utilityisDeepEqual
, and anotheruniqueBy(array, equalFn)
to be able to compose to your goal
I done it.
Description
add the method unique muti-type array.
example: [{ a: 1 }, { a: 1 }, 1, 2, 1, [1, 2], [1, 2]] => [{ a: 1 }, 1, 2, [1, 2]]