Array.from(new Set(returnArr.map(item =>JSON.stringify(item)))).map(i => JSON.parse(i))
例子:
Array.from(new Set([[1,2,3],[1,2,3]].map(item =>JSON.stringify(item)))).map(i => JSON.parse(i))
Array.from(new Set(returnArr.map(item =>JSON.stringify(item)))).map(i => JSON.parse(i))
例子:
Array.from(new Set([[1,2,3],[1,2,3]].map(item =>JSON.stringify(item)))).map(i => JSON.parse(i))