Skip to main content

Math.signbit

Less than 1 minutefeaturees-proposalmissing-example

Math.signbitopen in new window

Module

esnext.math.signbitopen in new window

Types

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

Entry points

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

Example

Examplesopen in new window:

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