Merge pull request #28 from 002Hub/deepsource-fix-d37f38b5
Replace builtin prototype method with `Object.prototype` equivalent
This commit is contained in:
commit
35f9492dbf
@ -398,7 +398,7 @@ function removeDuplicates(a) {
|
||||
return a.filter(function(item) {
|
||||
let type = typeof item;
|
||||
if(type in prims)
|
||||
return prims[type].hasOwnProperty(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