fix bug in dms

This commit is contained in:
Mystikfluu 2022-09-05 18:46:03 +02:00
parent 27fd13b3dd
commit 6af25e4b16

View File

@ -398,7 +398,7 @@ function removeDuplicates(a) {
return a.filter(function(item) {
let type = typeof item;
if(type in prims)
return Object.prototype.hasOwnProperty.call(prims.type, item) ? false : (prims[type][item] = true);
return Object.prototype.hasOwnProperty.call(prims[type], item) ? false : (prims[type][item] = true);
else
return objs.indexOf(item) >= 0 ? false : objs.push(item);
});