diff options
| author | XhmikosR <[email protected]> | 2019-02-13 21:40:15 +0200 |
|---|---|---|
| committer | XhmikosR <[email protected]> | 2019-02-20 22:05:45 +0200 |
| commit | 30861cbc6d450d70e646e2b1b35223f14d3d6973 (patch) | |
| tree | a71db0502eb15e1bdc4e34d33148a231bad9aac3 /js/src/util.js | |
| parent | 4b7c058a252b3f064d7508a70f4e783765921eea (diff) | |
| download | bootstrap-30861cbc6d450d70e646e2b1b35223f14d3d6973.tar.xz bootstrap-30861cbc6d450d70e646e2b1b35223f14d3d6973.zip | |
Simplify checks.
Diffstat (limited to 'js/src/util.js')
| -rw-r--r-- | js/src/util.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/src/util.js b/js/src/util.js index 5467b9dab..8b6226f61 100644 --- a/js/src/util.js +++ b/js/src/util.js @@ -123,7 +123,7 @@ const Util = { }, makeArray(nodeList) { - if (typeof nodeList === 'undefined' || nodeList === null) { + if (!nodeList) { return [] } @@ -131,7 +131,7 @@ const Util = { }, isVisible(element) { - if (typeof element === 'undefined' || element === null) { + if (!element) { return false } |
