|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
358 bytes
|
| Line | |
|---|
| 1 | 'use strict';
|
|---|
| 2 | var $ = require('../internals/export');
|
|---|
| 3 |
|
|---|
| 4 | // `Math.signbit` method
|
|---|
| 5 | // https://github.com/tc39/proposal-Math.signbit
|
|---|
| 6 | $({ target: 'Math', stat: true, forced: true }, {
|
|---|
| 7 | signbit: function signbit(x) {
|
|---|
| 8 | var n = +x;
|
|---|
| 9 | // eslint-disable-next-line no-self-compare -- NaN check
|
|---|
| 10 | return n === n && n === 0 ? 1 / n === -Infinity : n < 0;
|
|---|
| 11 | }
|
|---|
| 12 | });
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.