|
|
4 mēneši atpakaļ | |
|---|---|---|
| .. | ||
| .github | 4 mēneši atpakaļ | |
| test | 4 mēneši atpakaļ | |
| .eslintrc | 4 mēneši atpakaļ | |
| .nycrc | 4 mēneši atpakaļ | |
| CHANGELOG.md | 4 mēneši atpakaļ | |
| LICENSE | 4 mēneši atpakaļ | |
| README.md | 4 mēneši atpakaļ | |
| index.d.ts | 4 mēneši atpakaļ | |
| index.js | 4 mēneši atpakaļ | |
| package.json | 4 mēneši atpakaļ | |
| shams.d.ts | 4 mēneši atpakaļ | |
| shams.js | 4 mēneši atpakaļ | |
| tsconfig.json | 4 mēneši atpakaļ | |
Determine if the JS environment has Symbol support. Supports spec, or shams.
var hasSymbols = require('has-symbols');
hasSymbols() === true; // if the environment has native Symbol support. Not polyfillable, not forgeable.
var hasSymbolsKinda = require('has-symbols/shams');
hasSymbolsKinda() === true; // if the environment has a Symbol sham that mostly follows the spec.
Simply clone the repo, npm install, and run npm test