has-tostringtag (1.0.2)

Published 2026-02-24 13:57:36 +00:00 by atheaadmin

Installation

registry=
npm install has-tostringtag@1.0.2
"has-tostringtag": "1.0.2"

About this package

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

Dependencies

Dependencies

ID Version
has-symbols ^1.0.3

Development Dependencies

ID Version
@ljharb/eslint-config ^21.1.0
@types/has-symbols ^1.0.2
@types/tape ^5.6.4
aud ^2.0.4
auto-changelog ^2.4.0
core-js ^2.6.12
eslint =8.8.0
get-own-property-symbols ^0.9.5
in-publish ^2.0.1
npmignore ^0.3.1
nyc ^10.3.2
safe-publish-latest ^2.0.0
tape ^5.7.4
typescript next

Keywords

javascript ecmascript symbol symbols tostringtag Symbol.toStringTag
Details
npm
2026-02-24 13:57:36 +00:00
1
Jordan Harband
MIT
latest
6.3 KiB
Assets (1)
Versions (1) View all
1.0.2 2026-02-24