Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/js/src/util
diff options
context:
space:
mode:
authorXhmikosR <xhmikosr@gmail.com>2021-03-18 13:58:26 +0300
committerXhmikosR <xhmikosr@gmail.com>2021-10-05 19:52:11 +0300
commit9f1579aa048eb6a7dee30f60e5c2357b049eff3a (patch)
tree109f14cb931e0922ca1bc1a9b75234b3422e62ed /js/src/util
parent57d80fcd3274ba1ff0a1580966e098fda80f74e7 (diff)
Enable `unicorn/prefer-prototype-methods` rule
Diffstat (limited to 'js/src/util')
-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 7e9e9b0464..b994963018 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()
}
/**