From 9213d2beaa5d5f6b6ab75760873fc4bc39093140 Mon Sep 17 00:00:00 2001 From: uzlopak Date: Sun, 11 Aug 2024 16:13:14 +0200 Subject: [PATCH] feat: use Object.hasOwn --- borp.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/borp.js b/borp.js index 874313c..1a3ec0a 100755 --- a/borp.js +++ b/borp.js @@ -115,7 +115,7 @@ try { for (const input of args.values.reporter) { const [name, dest] = input.split(':') let Ctor - if (Object.prototype.hasOwnProperty.call(reporters, name) === true) { + if (Object.hasOwn(reporters, name) === true) { Ctor = reporters[name] } else { try {