# has-tostringtag

[![github actions](https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/inspect-js/has-tostringtag)](https://github.com/inspect-js/has-tostringtag/actions) [![coverage](https://codecov.io/gh/inspect-js/has-tostringtag/branch/main/graphs/badge.svg)](https://app.codecov.io/gh/inspect-js/has-tostringtag/) [![dependency status](https://david-dm.org/inspect-js/has-tostringtag.svg)](https://david-dm.org/inspect-js/has-tostringtag) [![dev dependency status](https://david-dm.org/inspect-js/has-tostringtag/dev-status.svg)](https://david-dm.org/inspect-js/has-tostringtag#info=devDependencies) [![License](https://img.shields.io/npm/l/has-tostringtag.svg)](https://github.com/jcarbonnell/nova/blob/main/use-cases/node_modules/has-tostringtag/LICENSE/README.md) [![Downloads](https://img.shields.io/npm/dm/has-tostringtag.svg)](https://npm-stat.com/charts.html?package=has-tostringtag)

[![npm badge](https://nodei.co/npm/has-tostringtag.png?downloads=true\&stars=true)](https://npmjs.org/package/has-tostringtag)

Determine if the JS environment has `Symbol.toStringTag` support. Supports spec, or shams.

## Example

```js
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.
```

## Supported Symbol shams

* get-own-property-symbols [npm](https://www.npmjs.com/package/get-own-property-symbols) | [github](https://github.com/WebReflection/get-own-property-symbols)
* core-js [npm](https://www.npmjs.com/package/core-js) | [github](https://github.com/zloirock/core-js)

## Tests

Simply clone the repo, `npm install`, and run `npm test`
