|
|
пре 2 месеци | |
|---|---|---|
| .. | ||
| .github | пре 2 месеци | |
| test | пре 2 месеци | |
| .eslintrc | пре 2 месеци | |
| .nycrc | пре 2 месеци | |
| CHANGELOG.md | пре 2 месеци | |
| LICENSE | пре 2 месеци | |
| README.md | пре 2 месеци | |
| index.d.ts | пре 2 месеци | |
| index.js | пре 2 месеци | |
| package.json | пре 2 месеци | |
| shams.d.ts | пре 2 месеци | |
| shams.js | пре 2 месеци | |
| tsconfig.json | пре 2 месеци | |
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