10
0
mirror of https://github.com/LCPQ/QUESTDB_website.git synced 2024-12-26 14:23:42 +01:00
QUESTDB_website/static/scripts/uniq.js

8 lines
199 B
JavaScript
Raw Normal View History

2019-09-28 15:22:17 +02:00
function uniq(array)
{
return uniqueArray = array.filter((obj1,index) => {
return index === array.findIndex(obj2 => {
return JSON.stringify(obj1) === JSON.stringify(obj2);
});
});
}