has-tostringtag <sup>[![Version Badge]]</sup>
-
<h2>has-tostringtag <sup>[![Version Badge][2]][1]</sup></h2>
<p>[![github actions][actions-image]][actions-url]</p>
<p>[![coverage][codecov-image]][codecov-url]</p>
<p>[![dependency status][5]][6]</p>
<p>[![dev dependency status][7]][8]</p>
<p>[![License][license-image]][license-url]</p>
<p>[![Downloads][downloads-image]][downloads-url]</p><p>[![npm badge][11]][1]</p>
<p>Determine if the JS environment has <code>Symbol.toStringTag</code> support. Supports spec, or shams.</p>
<h3>Example</h3>
<pre><code>
var hasSymbolToStringTag = require('has-tostringtag');hasSymbolToStringTag() === true; // if the environment has native Symbol.toStringTag support. Not polyfillable, not forgeable.
var hasSymbolToStringTagKinda = require('has-tostringtag/shams');
hasSymbolToStringTagKinda() === true; // if the environment has a Symbol.toStringTag sham that mostly follows the spec.
</code></pre><h3>Supported Symbol shams</h3>
<ul>
<li>get-own-property-symbols <a href="https://www.npmjs.com/package/get-own-property-symbols">npm</a> | <a href="https://github.com/WebReflection/get-own-property-symbols">github</a></li>
<li>core-js <a href="https://www.npmjs.com/package/core-js">npm</a> | <a href="https://github.com/zloirock/core-js">github</a></li>
</ul><h3>Tests</h3>
<p>Simply clone the repo, <code>npm install</code>, and run <code>npm test</code></p><p>[1]: https://npmjs.org/package/has-tostringtag</p>
<p>[2]: https://versionbadg.es/inspect-js/has-tostringtag.svg</p>
<p>[5]: https://david-dm.org/inspect-js/has-tostringtag.svg</p>
<p>[6]: https://david-dm.org/inspect-js/has-tostringtag</p>
<p>[7]: https://david-dm.org/inspect-js/has-tostringtag/dev-status.svg</p>
<p>[8]: https://david-dm.org/inspect-js/has-tostringtag#info=devDependencies</p>
<p>[11]: https://nodei.co/npm/has-tostringtag.png?downloads=true&stars=true</p>
<p>[license-image]: https://img.shields.io/npm/l/has-tostringtag.svg</p>
<p>[license-url]: LICENSE</p>
<p>[downloads-image]: https://img.shields.io/npm/dm/has-tostringtag.svg</p>
<p>[downloads-url]: https://npm-stat.com/charts.html?package=has-tostringtag</p>
<p>[codecov-image]: https://codecov.io/gh/inspect-js/has-tostringtag/branch/main/graphs/badge.svg</p>
<p>[codecov-url]: https://app.codecov.io/gh/inspect-js/has-tostringtag/</p>
<p>[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/inspect-js/has-tostringtag</p>
<p>[actions-url]: https://github.com/inspect-js/has-tostringtag/actions</p><hr>
<p>本文由模极社发布</p>
<hr>
<h4>
你可能还感兴趣</h4>
<ul>
<li><a href="/t/4178/4178">BaiduPCS-Go 百度网盘客户端(加强版)</a></li>
<li><a href="/t/4373/4373">Jest测试框架 - 模具Web开发参考</a></li>
<li><a href="/t/2782/2782">垃圾钉(模具限位钉)作用与规格</a></li>
</ul><hr>
<p><strong>相关推荐:</strong></p>
<ul>
<li><a href="https://www.mj7.cn/t/topic">注塑产品报价不会算?完整成本计算模板来了(附公式+案例)</a></li>
<li><a href="https://www.mj7.cn/t/pp">PP塑料:性能参数与注塑成型指南</a></li>
<li><a href="https://www.mj7.cn/t/pa">PA塑料:性能参数与注塑成型指南</a></li>
</ul><hr>
<p>还有什么补充参数吗?一起完善。</p>