securityos/node_modules/has-tostringtag
Berkeley 927854894b First commit 2024-09-06 12:32:35 -03:00
..
.github First commit 2024-09-06 12:32:35 -03:00
test First commit 2024-09-06 12:32:35 -03:00
.eslintrc First commit 2024-09-06 12:32:35 -03:00
.nycrc First commit 2024-09-06 12:32:35 -03:00
CHANGELOG.md First commit 2024-09-06 12:32:35 -03:00
LICENSE First commit 2024-09-06 12:32:35 -03:00
README.md First commit 2024-09-06 12:32:35 -03:00
index.d.ts First commit 2024-09-06 12:32:35 -03:00
index.js First commit 2024-09-06 12:32:35 -03:00
package.json First commit 2024-09-06 12:32:35 -03:00
shams.d.ts First commit 2024-09-06 12:32:35 -03:00
shams.js First commit 2024-09-06 12:32:35 -03:00
tsconfig.json First commit 2024-09-06 12:32:35 -03:00

README.md

has-tostringtag Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

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