|
|
1 week ago | |
|---|---|---|
| .. | ||
| .github | 1 week ago | |
| test | 1 week ago | |
| .eslintrc | 1 week ago | |
| .nycrc | 1 week ago | |
| CHANGELOG.md | 1 week ago | |
| LICENSE | 1 week ago | |
| README.md | 1 week ago | |
| index.d.ts | 1 week ago | |
| index.js | 1 week ago | |
| package.json | 1 week ago | |
| shams.d.ts | 1 week ago | |
| shams.js | 1 week ago | |
| tsconfig.json | 1 week ago | |
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