mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-02 18:11:04 +08:00
Change-Id: I3fcf49bc416301a030d298cfc48c448bfeba4335 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/1878808 Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org> Reviewed-by: Yang Guo <yangguo@chromium.org> Commit-Queue: Paul Lewis <aerotwist@chromium.org>
10 lines
259 B
JavaScript
10 lines
259 B
JavaScript
var $ = require('../internals/export');
|
|
|
|
// `Math.signbit` method
|
|
// https://github.com/tc39/proposal-Math.signbit
|
|
$({ target: 'Math', stat: true }, {
|
|
signbit: function signbit(x) {
|
|
return (x = +x) != x ? x : x == 0 ? 1 / x == Infinity : x > 0;
|
|
}
|
|
});
|