Last change
on this file since e29cc2e was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
257 bytes
|
Rev | Line | |
---|
[6a3a178] | 1 | var $ = require('../internals/export');
|
---|
| 2 |
|
---|
| 3 | // `Math.signbit` method
|
---|
| 4 | // https://github.com/tc39/proposal-Math.signbit
|
---|
| 5 | $({ target: 'Math', stat: true }, {
|
---|
| 6 | signbit: function signbit(x) {
|
---|
| 7 | return (x = +x) == x && x == 0 ? 1 / x == -Infinity : x < 0;
|
---|
| 8 | }
|
---|
| 9 | });
|
---|
Note:
See
TracBrowser
for help on using the repository browser.