阿西河

所有教程

公众号
🌙
阿西河前端的公众号

我的收藏

    最近访问  (文章)

      教程列表

      抓包专区
      测试专区

      JS BigInt.valueOf()

      The valueOf() method returns the wrapped primitive value of a BigInt object.

      The source for this interactive example is stored in a GitHub repository. If you’d like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request.

      Syntax

      bigIntObj.valueOf()
      

      Return value

      A BigInt representing the primitive value of the specified BigInt object.

      Examples

      Using valueOf

      typeof Object(1n); // object
      typeof Object(1n).valueOf(); // bigint
      
      

      Specifications

      SpecificationStatus
      BigIntStage 3

      See also

      目录
      目录