Sha256: 65a8f584a697771c829679426fb42a50e72e885cf7af598cec9f0c186ed38862

Contents?: true

Size: 1.76 KB

Versions: 81

Compression:

Stored size: 1.76 KB

Contents

# has-symbols <sup>[![Version Badge][2]][1]</sup>

[![Build Status][3]][4]
[![dependency status][5]][6]
[![dev dependency status][7]][8]
[![License][license-image]][license-url]
[![Downloads][downloads-image]][downloads-url]

[![npm badge][11]][1]

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

## Example

```js
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
 - get-own-property-symbols [npm](https://www.npmjs.com/package/get-own-property-symbols) | [github](https://github.com/WebReflection/get-own-property-symbols)
 - core-js [npm](https://www.npmjs.com/package/core-js) | [github](https://github.com/zloirock/core-js)

## Tests
Simply clone the repo, `npm install`, and run `npm test`

[1]: https://npmjs.org/package/has-symbols
[2]: http://versionbadg.es/ljharb/has-symbols.svg
[3]: https://travis-ci.org/ljharb/has-symbols.svg
[4]: https://travis-ci.org/ljharb/has-symbols
[5]: https://david-dm.org/ljharb/has-symbols.svg
[6]: https://david-dm.org/ljharb/has-symbols
[7]: https://david-dm.org/ljharb/has-symbols/dev-status.svg
[8]: https://david-dm.org/ljharb/has-symbols#info=devDependencies
[9]: https://ci.testling.com/ljharb/has-symbols.png
[10]: https://ci.testling.com/ljharb/has-symbols
[11]: https://nodei.co/npm/has-symbols.png?downloads=true&stars=true
[license-image]: http://img.shields.io/npm/l/has-symbols.svg
[license-url]: LICENSE
[downloads-image]: http://img.shields.io/npm/dm/has-symbols.svg
[downloads-url]: http://npm-stat.com/charts.html?package=has-symbols

Version data entries

81 entries across 81 versions & 11 rubygems

Version Path
optimacms-0.1.61 spec/dummy/node_modules/has-symbols/README.md
disco_app-0.18.0 test/dummy/node_modules/has-symbols/README.md
disco_app-0.18.2 test/dummy/node_modules/has-symbols/README.md
disco_app-0.16.1 test/dummy/node_modules/has-symbols/README.md
disco_app-0.15.2 test/dummy/node_modules/has-symbols/README.md
disco_app-0.18.4 test/dummy/node_modules/has-symbols/README.md
disco_app-0.18.1 test/dummy/node_modules/has-symbols/README.md
disco_app-0.12.7.pre.puma.pre.3 test/dummy/node_modules/has-symbols/README.md
disco_app-0.14.0 test/dummy/node_modules/has-symbols/README.md
disco_app-0.13.6.pre.puma.pre.3 test/dummy/node_modules/has-symbols/README.md
tang-0.2.1 spec/tang_app/node_modules/has-symbols/README.md
tang-0.2.0 spec/tang_app/node_modules/has-symbols/README.md
tang-0.1.0 spec/tang_app/node_modules/has-symbols/README.md
tang-0.0.9 spec/tang_app/node_modules/has-symbols/README.md
enju_library-0.3.8 spec/dummy/node_modules/has-symbols/README.md
condenser-0.3 lib/condenser/processors/node_modules/has-symbols/README.md
ilog-0.4.1 node_modules/has-symbols/README.md
ilog-0.4.0 node_modules/has-symbols/README.md
ilog-0.3.3 node_modules/has-symbols/README.md
condenser-0.2 lib/condenser/processors/node_modules/has-symbols/README.md