租房小程序前端代码
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.

46 lines
2.0 KiB

3 months ago
  1. # has-symbols <sup>[![Version Badge][2]][1]</sup>
  2. [![github actions][actions-image]][actions-url]
  3. [![coverage][codecov-image]][codecov-url]
  4. [![dependency status][5]][6]
  5. [![dev dependency status][7]][8]
  6. [![License][license-image]][license-url]
  7. [![Downloads][downloads-image]][downloads-url]
  8. [![npm badge][11]][1]
  9. Determine if the JS environment has Symbol support. Supports spec, or shams.
  10. ## Example
  11. ```js
  12. var hasSymbols = require('has-symbols');
  13. hasSymbols() === true; // if the environment has native Symbol support. Not polyfillable, not forgeable.
  14. var hasSymbolsKinda = require('has-symbols/shams');
  15. hasSymbolsKinda() === true; // if the environment has a Symbol sham that mostly follows the spec.
  16. ```
  17. ## Supported Symbol shams
  18. - get-own-property-symbols [npm](https://www.npmjs.com/package/get-own-property-symbols) | [github](https://github.com/WebReflection/get-own-property-symbols)
  19. - core-js [npm](https://www.npmjs.com/package/core-js) | [github](https://github.com/zloirock/core-js)
  20. ## Tests
  21. Simply clone the repo, `npm install`, and run `npm test`
  22. [1]: https://npmjs.org/package/has-symbols
  23. [2]: https://versionbadg.es/inspect-js/has-symbols.svg
  24. [5]: https://david-dm.org/inspect-js/has-symbols.svg
  25. [6]: https://david-dm.org/inspect-js/has-symbols
  26. [7]: https://david-dm.org/inspect-js/has-symbols/dev-status.svg
  27. [8]: https://david-dm.org/inspect-js/has-symbols#info=devDependencies
  28. [11]: https://nodei.co/npm/has-symbols.png?downloads=true&stars=true
  29. [license-image]: https://img.shields.io/npm/l/has-symbols.svg
  30. [license-url]: LICENSE
  31. [downloads-image]: https://img.shields.io/npm/dm/has-symbols.svg
  32. [downloads-url]: https://npm-stat.com/charts.html?package=has-symbols
  33. [codecov-image]: https://codecov.io/gh/inspect-js/has-symbols/branch/main/graphs/badge.svg
  34. [codecov-url]: https://app.codecov.io/gh/inspect-js/has-symbols/
  35. [actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/inspect-js/has-symbols
  36. [actions-url]: https://github.com/inspect-js/has-symbols/actions