mirror of
https://github.com/LCPQ/QUESTDB_website.git
synced 2024-08-25 13:41:50 +02:00
8 lines
199 B
JavaScript
8 lines
199 B
JavaScript
function uniq(array)
|
|
{
|
|
return uniqueArray = array.filter((obj1,index) => {
|
|
return index === array.findIndex(obj2 => {
|
|
return JSON.stringify(obj1) === JSON.stringify(obj2);
|
|
});
|
|
});
|
|
} |