You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
7 months ago | |
|---|---|---|
| .. | ||
| .github | 7 months ago | |
| test | 7 months ago | |
| .eslintrc | 7 months ago | |
| .nycrc | 7 months ago | |
| CHANGELOG.md | 7 months ago | |
| LICENSE | 7 months ago | |
| README.md | 7 months ago | |
| index.d.ts | 7 months ago | |
| index.js | 7 months ago | |
| package.json | 7 months ago | |
| shams.d.ts | 7 months ago | |
| shams.js | 7 months ago | |
| tsconfig.json | 7 months ago | |
README.md
has-tostringtag 
Determine if the JS environment has Symbol.toStringTag support. Supports spec, or shams.
Example
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
Tests
Simply clone the repo, npm install, and run npm test
