aboutsummaryrefslogtreecommitdiff
path: root/js/src
diff options
context:
space:
mode:
authorXhmikosR <[email protected]>2021-03-18 12:58:26 +0200
committerXhmikosR <[email protected]>2021-10-05 19:52:11 +0300
commit9f1579aa048eb6a7dee30f60e5c2357b049eff3a (patch)
tree109f14cb931e0922ca1bc1a9b75234b3422e62ed /js/src
parent57d80fcd3274ba1ff0a1580966e098fda80f74e7 (diff)
downloadbootstrap-9f1579aa048eb6a7dee30f60e5c2357b049eff3a.tar.xz
bootstrap-9f1579aa048eb6a7dee30f60e5c2357b049eff3a.zip
Enable `unicorn/prefer-prototype-methods` rule
Diffstat (limited to 'js/src')
-rw-r--r--js/src/util/index.js2
1 files changed, 1 insertions, 1 deletions
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()
}
/**