UNPKG

has-tostringtag

Version:

Determine if the JS environment has `Symbol.toStringTag` support. Supports spec, or shams.

9 lines (6 loc) 196 B
'use strict'; var hasSymbols = require('has-symbols'); /** @type {import('.')} */ module.exports = function hasToStringTag() { return hasSymbols() && typeof Symbol.toStringTag === 'symbol'; };