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

38 lines
1.6 KiB

7 months ago
  1. # has-proto <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. Does this environment have the ability to set the [[Prototype]] of an object on creation with `__proto__`?
  8. ## Example
  9. ```js
  10. var hasProto = require('has-proto');
  11. var assert = require('assert');
  12. assert.equal(typeof hasProto(), 'boolean');
  13. ```
  14. ## Tests
  15. Simply clone the repo, `npm install`, and run `npm test`
  16. [package-url]: https://npmjs.org/package/has-proto
  17. [npm-version-svg]: https://versionbadg.es/inspect-js/has-proto.svg
  18. [deps-svg]: https://david-dm.org/inspect-js/has-proto.svg
  19. [deps-url]: https://david-dm.org/inspect-js/has-proto
  20. [dev-deps-svg]: https://david-dm.org/inspect-js/has-proto/dev-status.svg
  21. [dev-deps-url]: https://david-dm.org/inspect-js/has-proto#info=devDependencies
  22. [npm-badge-png]: https://nodei.co/npm/has-proto.png?downloads=true&stars=true
  23. [license-image]: https://img.shields.io/npm/l/has-proto.svg
  24. [license-url]: LICENSE
  25. [downloads-image]: https://img.shields.io/npm/dm/has-proto.svg
  26. [downloads-url]: https://npm-stat.com/charts.html?package=has-proto
  27. [codecov-image]: https://codecov.io/gh/inspect-js/has-proto/branch/main/graphs/badge.svg
  28. [codecov-url]: https://app.codecov.io/gh/inspect-js/has-proto/
  29. [actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/inspect-js/has-proto
  30. [actions-url]: https://github.com/inspect-js/has-proto/actions