|
|
месяцев назад: 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