]> git.ipfire.org Git - thirdparty/bootstrap.git/commit
Replace double tilde with `Math.floor` (#30691)
authorXhmikosR <xhmikosr@gmail.com>
Thu, 14 May 2020 06:46:42 +0000 (09:46 +0300)
committerGitHub <noreply@github.com>
Thu, 14 May 2020 06:46:42 +0000 (09:46 +0300)
commit7966167cf6d52ce1841b9f1d2d37700ec7d2b3c4
treebeef0ea04f20b97a7b66bf127652c8884fd8e0f5
parentddf39a509213d697857e112d1a7f7a3fc8830d65
Replace double tilde with `Math.floor` (#30691)

Nowadays, browser engines have improved a lot and `Math.floor` is the same, if not faster.
Also, clarity is better than micro-optimizations in this case.
js/src/util/index.js