mirror of
https://github.com/musix-org/musix-oss
synced 2024-12-23 19:23:18 +00:00
11 lines
307 B
JavaScript
11 lines
307 B
JavaScript
|
var $ = require('../internals/export');
|
||
|
|
||
|
// `Math.signbit` method
|
||
|
// https://github.com/tc39/proposal-Math.signbit
|
||
|
$({ target: 'Math', stat: true }, {
|
||
|
signbit: function signbit(x) {
|
||
|
// eslint-disable-next-line no-self-compare
|
||
|
return (x = +x) != x ? x : x == 0 ? 1 / x == Infinity : x > 0;
|
||
|
}
|
||
|
});
|