跳至主要內容

Math.signbit

小于 1 分钟featurees-proposalmissing-example

Math.signbitopen in new window

模块

esnext.math.signbitopen in new window

类型

interface Math {
  signbit(x: number): boolean;
}

入口点

core-js/proposals/math-signbit
core-js(-pure)/full/math/signbit

示例

示例open in new window:

Math.signbit(NaN); // => false
Math.signbit(1); // => false
Math.signbit(-1); // => true
Math.signbit(0); // => false
Math.signbit(-0); // => true