![]() | Name | Last modified | Size | Description |
---|---|---|---|---|
![]() | Parent Directory | - | ||
![]() | test/ | 8 months ago | - | |
![]() | CHANGELOG.md | 8 months ago | 3.5K | |
![]() | LICENSE | 8 months ago | 1.0K | |
![]() | README.md | 8 months ago | 2.1K | |
![]() | index.d.ts | 8 months ago | 70 | |
![]() | index.js | 8 months ago | 196 | |
![]() | package.json | 8 months ago | 2.8K | |
![]() | shams.d.ts | 8 months ago | 80 | |
![]() | shams.js | 8 months ago | 189 | |
![]() | tsconfig.json | 8 months ago | 3.5K |
Determine if the JS environment has Symbol.toStringTag
support. Supports spec, or shams.
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.
Simply clone the repo, npm install
, and run npm test