MES手机端
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # gopd <sup>[![Version Badge][npm-version-svg]][package-url]</sup>
  2. [![github actions][actions-image]][actions-url]
  3. [![coverage][codecov-image]][codecov-url]
  4. [![License][license-image]][license-url]
  5. [![Downloads][downloads-image]][downloads-url]
  6. [![npm badge][npm-badge-png]][package-url]
  7. `Object.getOwnPropertyDescriptor`, but accounts for IE's broken implementation.
  8. ## Usage
  9. ```javascript
  10. var gOPD = require('gopd');
  11. var assert = require('assert');
  12. if (gOPD) {
  13. assert.equal(typeof gOPD, 'function', 'descriptors supported');
  14. // use gOPD like Object.getOwnPropertyDescriptor here
  15. } else {
  16. assert.ok(!gOPD, 'descriptors not supported');
  17. }
  18. ```
  19. [package-url]: https://npmjs.org/package/gopd
  20. [npm-version-svg]: https://versionbadg.es/ljharb/gopd.svg
  21. [deps-svg]: https://david-dm.org/ljharb/gopd.svg
  22. [deps-url]: https://david-dm.org/ljharb/gopd
  23. [dev-deps-svg]: https://david-dm.org/ljharb/gopd/dev-status.svg
  24. [dev-deps-url]: https://david-dm.org/ljharb/gopd#info=devDependencies
  25. [npm-badge-png]: https://nodei.co/npm/gopd.png?downloads=true&stars=true
  26. [license-image]: https://img.shields.io/npm/l/gopd.svg
  27. [license-url]: LICENSE
  28. [downloads-image]: https://img.shields.io/npm/dm/gopd.svg
  29. [downloads-url]: https://npm-stat.com/charts.html?package=gopd
  30. [codecov-image]: https://codecov.io/gh/ljharb/gopd/branch/main/graphs/badge.svg
  31. [codecov-url]: https://app.codecov.io/gh/ljharb/gopd/
  32. [actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/ljharb/gopd
  33. [actions-url]: https://github.com/ljharb/gopd/actions