2019-09-25 13:30:05 +05:30
|
|
|
var $ = require('../internals/export');
|
|
|
|
|
|
|
|
// `Math.signbit` method
|
|
|
|
// https://github.com/tc39/proposal-Math.signbit
|
|
|
|
$({ target: 'Math', stat: true }, {
|
|
|
|
signbit: function signbit(x) {
|
2019-12-04 20:38:33 +05:30
|
|
|
return (x = +x) == x && x == 0 ? 1 / x == -Infinity : x < 0;
|
2019-09-25 13:30:05 +05:30
|
|
|
}
|
|
|
|
});
|