From 9f1579aa048eb6a7dee30f60e5c2357b049eff3a Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Thu, 18 Mar 2021 12:58:26 +0200 Subject: Enable `unicorn/prefer-prototype-methods` rule --- js/src/util/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'js/src') diff --git a/js/src/util/index.js b/js/src/util/index.js index 7e9e9b046..b99496301 100644 --- a/js/src/util/index.js +++ b/js/src/util/index.js @@ -15,7 +15,7 @@ const toType = obj => { return `${obj}` } - return {}.toString.call(obj).match(/\s([a-z]+)/i)[1].toLowerCase() + return Object.prototype.toString.call(obj).match(/\s([a-z]+)/i)[1].toLowerCase() } /** -- cgit v1.2.3