Packages

object BigInt extends Object

ECMAScript 2019

A companion object of BigInt class.

Annotations
@native() @JSGlobal()
See also

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BigInt
  2. Object
  3. Any
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. trait ToLocaleStringOptions extends Object

    Type of the options parameter of BigInt.toLocaleString.

    Type of the options parameter of BigInt.toLocaleString.

    Annotations
    @JSType()
    See also

    https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt/toLocaleString#Parameters

Value Members

  1. def apply(value: String): BigInt

    See also

    https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt

  2. def apply(value: Int): BigInt

    See also

    https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt

  3. def apply(value: Double): BigInt

    Returns a BigInt from a whole Double.

    Returns a BigInt from a whole Double.

    This overload is exposed to allow users to create a BigInt from a Double which is greater than Int.MaxValue.

    Exceptions thrown

    RangeError if value has a fractional portion

    See also

    https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt

  4. def asIntN(width: Int, bigint: BigInt): BigInt

    See also

    https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt/asIntN

  5. def asUintN(width: Int, bigint: BigInt): BigInt

    See also

    https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt/asUintN

  6. def hasOwnProperty(v: String): Boolean

    Tests whether this object has the specified property as a direct property.

    Tests whether this object has the specified property as a direct property.

    Unlike js.Object.hasProperty, this method does not check down the object's prototype chain.

    MDN

    Definition Classes
    Object
  7. def isPrototypeOf(v: Object): Boolean

    Tests whether this object is in the prototype chain of another object.

    Tests whether this object is in the prototype chain of another object.

    Definition Classes
    Object
  8. def propertyIsEnumerable(v: String): Boolean

    Tests whether the specified property in an object can be enumerated by a call to js.Object.properties, with the exception of properties inherited through the prototype chain.

    Tests whether the specified property in an object can be enumerated by a call to js.Object.properties, with the exception of properties inherited through the prototype chain.

    If the object does not have the specified property, this method returns false.

    MDN

    Definition Classes
    Object
  9. def toLocaleString(): String
    Definition Classes
    Object
  10. def valueOf(): scala.Any
    Definition Classes
    Object