/ etherpad / src / plugin_packages / has-symbols /

[ICO]NameLast modifiedSizeDescription
[PARENTDIR]Parent Directory  -  
[DIR]test/3 months ago -  
[TXT]CHANGELOG.md40 years ago9.2K 
[   ]package.json40 years ago2.9K 
[TXT]README.md40 years ago2.0K 
[   ]shams.js40 years ago1.9K 
[   ]LICENSE40 years ago1.0K 
[   ]index.js40 years ago447  
[   ]tsconfig.json40 years ago143  
[TXT]index.d.ts40 years ago 73  
[TXT]shams.d.ts40 years ago 69  
README.md

has-symbols Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

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

Example

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.

Supported Symbol shams

Tests

Simply clone the repo, npm install, and run npm test

Apache/2.4.38 (Debian) Server at www.karls.computer Port 80