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