zlwu dd667101ef first commit 1 rok temu
..
.github dd667101ef first commit 1 rok temu
test dd667101ef first commit 1 rok temu
.eslintrc dd667101ef first commit 1 rok temu
.nycrc dd667101ef first commit 1 rok temu
CHANGELOG.md dd667101ef first commit 1 rok temu
LICENSE dd667101ef first commit 1 rok temu
README.md dd667101ef first commit 1 rok temu
index.d.ts dd667101ef first commit 1 rok temu
index.js dd667101ef first commit 1 rok temu
package.json dd667101ef first commit 1 rok temu
shams.d.ts dd667101ef first commit 1 rok temu
shams.js dd667101ef first commit 1 rok temu
tsconfig.json dd667101ef first commit 1 rok temu

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