web 3d图形渲染器
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
1.3 KiB

  1. # is-bigint <sup>[![Version Badge][2]][1]</sup>
  2. [![Build Status][3]][4]
  3. [![dependency status][5]][6]
  4. [![dev dependency status][7]][8]
  5. [![License][license-image]][license-url]
  6. [![Downloads][downloads-image]][downloads-url]
  7. [![npm badge][11]][1]
  8. Is this an ES BigInt value?
  9. ## Example
  10. ```js
  11. var isBigInt = require('is-bigint');
  12. assert(!isBigInt(function () {}));
  13. assert(!isBigInt(null));
  14. assert(!isBigInt(function* () { yield 42; return Infinity; });
  15. assert(!isBigInt(Symbol('foo')));
  16. assert(isBigInt(1n));
  17. assert(isBigInt(Object(1n)));
  18. ```
  19. ## Tests
  20. Simply clone the repo, `npm install`, and run `npm test`
  21. [1]: https://npmjs.org/package/is-bigint
  22. [2]: http://versionbadg.es/ljharb/is-bigint.svg
  23. [3]: https://travis-ci.org/ljharb/is-bigint.svg
  24. [4]: https://travis-ci.org/ljharb/is-bigint
  25. [5]: https://david-dm.org/ljharb/is-bigint.svg
  26. [6]: https://david-dm.org/ljharb/is-bigint
  27. [7]: https://david-dm.org/ljharb/is-bigint/dev-status.svg
  28. [8]: https://david-dm.org/ljharb/is-bigint#info=devDependencies
  29. [11]: https://nodei.co/npm/is-bigint.png?downloads=true&stars=true
  30. [license-image]: http://img.shields.io/npm/l/is-bigint.svg
  31. [license-url]: LICENSE
  32. [downloads-image]: http://img.shields.io/npm/dm/is-bigint.svg
  33. [downloads-url]: http://npm-stat.com/charts.html?package=is-bigint