es7.math.signbit.js 269 B

12345678
  1. // http://jfbastien.github.io/papers/Math.signbit.html
  2. var $export = require('./_export');
  3. $export($export.S, 'Math', { signbit: function signbit(x) {
  4. // eslint-disable-next-line no-self-compare
  5. return (x = +x) != x ? x : x == 0 ? 1 / x == Infinity : x > 0;
  6. } });