From e2350b9aa452dc0a6d987dc04201d33ffa863265 Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Mon, 5 Sep 2022 16:39:08 +0000 Subject: [PATCH] Replace builtin prototype method with `Object.prototype` equivalent --- js/dms.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/dms.js b/js/dms.js index c615ee0..20e7197 100644 --- a/js/dms.js +++ b/js/dms.js @@ -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); });