fix bug in dms
This commit is contained in:
parent
27fd13b3dd
commit
6af25e4b16
@ -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);
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user