/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

  1. // 20.2.2.28 Math.sign(x)
  2. module.exports = Math.sign || function sign(x) {
  3. // eslint-disable-next-line no-self-compare
  4. return (x = +x) == 0 || x != x ? x : x < 0 ? -1 : 1;
  5. };