codeql-action/node_modules/has-tostringtag
2024-09-16 17:29:58 +00:00
..
.github Bump eslint-plugin-import to avoid vulnerability in dependency 2023-01-18 21:00:05 +00:00
test Update checked-in dependencies 2024-09-16 17:29:58 +00:00
.eslintrc Update checked-in dependencies 2024-09-16 17:29:58 +00:00
.nycrc Update checked-in dependencies 2024-09-16 17:29:58 +00:00
CHANGELOG.md Update checked-in dependencies 2024-09-16 17:29:58 +00:00
index.d.ts Update checked-in dependencies 2024-09-16 17:29:58 +00:00
index.js Update checked-in dependencies 2024-09-16 17:29:58 +00:00
LICENSE Bump eslint-plugin-import to avoid vulnerability in dependency 2023-01-18 21:00:05 +00:00
package.json Update checked-in dependencies 2024-09-16 17:29:58 +00:00
README.md Bump eslint-plugin-import to avoid vulnerability in dependency 2023-01-18 21:00:05 +00:00
shams.d.ts Update checked-in dependencies 2024-09-16 17:29:58 +00:00
shams.js Update checked-in dependencies 2024-09-16 17:29:58 +00:00
tsconfig.json Update checked-in dependencies 2024-09-16 17:29:58 +00:00

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