# has-symbols

[![github actions](https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/inspect-js/has-symbols)](https://github.com/inspect-js/has-symbols/actions) [![coverage](https://codecov.io/gh/inspect-js/has-symbols/branch/main/graphs/badge.svg)](https://app.codecov.io/gh/inspect-js/has-symbols/) [![dependency status](https://david-dm.org/inspect-js/has-symbols.svg)](https://david-dm.org/inspect-js/has-symbols) [![dev dependency status](https://david-dm.org/inspect-js/has-symbols/dev-status.svg)](https://david-dm.org/inspect-js/has-symbols#info=devDependencies) [![License](https://img.shields.io/npm/l/has-symbols.svg)](https://github.com/jcarbonnell/nova/blob/main/nova-sdk-js/examples/node_modules/has-symbols/LICENSE/README.md) [![Downloads](https://img.shields.io/npm/dm/has-symbols.svg)](https://npm-stat.com/charts.html?package=has-symbols)

[![npm badge](https://nodei.co/npm/has-symbols.png?downloads=true\&stars=true)](https://npmjs.org/package/has-symbols)

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`


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://civictech-ou.gitbook.io/nova-docs/nova-sdk-js/examples/node_modules/has-symbols.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
