esnext.math.signbit.js 271 B

123456789
  1. var $ = require('../internals/export');
  2. // `Math.signbit` method
  3. // https://github.com/tc39/proposal-Math.signbit
  4. $({ target: 'Math', stat: true, forced: true }, {
  5. signbit: function signbit(x) {
  6. return (x = +x) == x && x == 0 ? 1 / x == -Infinity : x < 0;
  7. }
  8. });