市场夺宝奇兵
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
zhaoruhui ed318b25ed 修改页面文字 3 months ago
..
.github 添加配置文件 3 months ago
test 添加配置文件 3 months ago
.eslintrc 添加配置文件 3 months ago
.nycrc 添加配置文件 3 months ago
CHANGELOG.md 添加配置文件 3 months ago
LICENSE 添加配置文件 3 months ago
README.md 添加配置文件 3 months ago
index.d.ts 添加配置文件 3 months ago
index.js 添加配置文件 3 months ago
package.json 添加配置文件 3 months ago
shams.d.ts 添加配置文件 3 months ago
shams.js 添加配置文件 3 months ago
tsconfig.json 添加配置文件 3 months ago

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