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