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

43 lines
2.2 KiB

3 months ago
  1. # has-property-descriptors <sup>[![Version Badge][npm-version-svg]][package-url]</sup>
  2. [![github actions][actions-image]][actions-url]
  3. [![coverage][codecov-image]][codecov-url]
  4. [![dependency status][deps-svg]][deps-url]
  5. [![dev dependency status][dev-deps-svg]][dev-deps-url]
  6. [![License][license-image]][license-url]
  7. [![Downloads][downloads-image]][downloads-url]
  8. [![npm badge][npm-badge-png]][package-url]
  9. Does the environment have full property descriptor support? Handles IE 8's broken defineProperty/gOPD.
  10. ## Example
  11. ```js
  12. var hasPropertyDescriptors = require('has-property-descriptors');
  13. var assert = require('assert');
  14. assert.equal(hasPropertyDescriptors(), true); // will be `false` in IE 6-8, and ES5 engines
  15. // Arrays can not have their length `[[Defined]]` in some engines
  16. assert.equal(hasPropertyDescriptors.hasArrayLengthDefineBug(), false); // will be `true` in Firefox 4-22, and node v0.6
  17. ```
  18. ## Tests
  19. Simply clone the repo, `npm install`, and run `npm test`
  20. [package-url]: https://npmjs.org/package/has-property-descriptors
  21. [npm-version-svg]: https://versionbadg.es/inspect-js/has-property-descriptors.svg
  22. [deps-svg]: https://david-dm.org/inspect-js/has-property-descriptors.svg
  23. [deps-url]: https://david-dm.org/inspect-js/has-property-descriptors
  24. [dev-deps-svg]: https://david-dm.org/inspect-js/has-property-descriptors/dev-status.svg
  25. [dev-deps-url]: https://david-dm.org/inspect-js/has-property-descriptors#info=devDependencies
  26. [npm-badge-png]: https://nodei.co/npm/has-property-descriptors.png?downloads=true&stars=true
  27. [license-image]: https://img.shields.io/npm/l/has-property-descriptors.svg
  28. [license-url]: LICENSE
  29. [downloads-image]: https://img.shields.io/npm/dm/has-property-descriptors.svg
  30. [downloads-url]: https://npm-stat.com/charts.html?package=has-property-descriptors
  31. [codecov-image]: https://codecov.io/gh/inspect-js/has-property-descriptors/branch/main/graphs/badge.svg
  32. [codecov-url]: https://app.codecov.io/gh/inspect-js/has-property-descriptors/
  33. [actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/inspect-js/has-property-descriptors
  34. [actions-url]: https://github.com/inspect-js/has-property-descriptors/actions