/node_modules/babel-polyfill/node_modules/core-js/library/modules/_math-sign.js
https://bitbucket.org/worklabschd/bingle_customer2 · JavaScript · 5 lines · 3 code · 0 blank · 2 comment · 4 complexity · 475bf10f0516ee7dbd1fe4e4ca60e4ec MD5 · raw file
- // 20.2.2.28 Math.sign(x)
- module.exports = Math.sign || function sign(x) {
- // eslint-disable-next-line no-self-compare
- return (x = +x) == 0 || x != x ? x : x < 0 ? -1 : 1;
- };