Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

has-symbols

inspect-js259mMIT1.1.0TypeScript support: included

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

Symbol, symbols, typeof, sham, polyfill, native, core-js, ES6

readme

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

changelog

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog and this project adheres to Semantic Versioning.

v1.1.0 - 2024-12-02

Commits

  • [actions] update workflows 548c0bf
  • [actions] further shard; update action deps bec56bb
  • [meta] use npmignore to autogenerate an npmignore file ac81032
  • [New] add types 6469cbf
  • [actions] update rebase action to use reusable workflow 9c9d4d0
  • [Dev Deps] update eslint, @ljharb/eslint-config, aud, tape adb5887
  • [Dev Deps] update @ljharb/eslint-config, aud, tape 13ec198
  • [Dev Deps] update auto-changelog, core-js, tape 941be52
  • [Tests] replace aud with npm audit 74f49e9
  • [Dev Deps] update npmignore 9c0ac04
  • [Dev Deps] add missing peer dep 52337a5

v1.0.3 - 2022-03-01

Commits

  • [actions] use node/install instead of node/run; use codecov action 518b28f
  • [meta] add bugs and homepage fields; reorder package.json c480b13
  • [actions] reuse common workflows 01d0ee0
  • [actions] update codecov uploader 6424ebe
  • [Dev Deps] update eslint, @ljharb/eslint-config, aud, auto-changelog, tape dfa7e7f
  • [Dev Deps] update eslint, @ljharb/eslint-config, safe-publish-latest, tape 0c8d436
  • [Dev Deps] update eslint, @ljharb/eslint-config, aud, tape 9026554
  • [readme] add actions and codecov badges eaa9682
  • [Dev Deps] update eslint, tape bc7a3ba
  • [Dev Deps] update eslint, auto-changelog 0ace00a
  • [meta] use prepublishOnly script for npm 7+ 093f72b
  • [Tests] test on all 16 minors 9b80d3d

v1.0.2 - 2021-02-27

Fixed

  • [Fix] use a universal way to get the original Symbol #11

Commits

  • [Tests] migrate tests to Github Actions 90ae798
  • [meta] do not publish github action workflow files 29e60a1
  • [Tests] run nyc on all tests 8476b91
  • [readme] fix repo URLs, remove defunct badges 126288e
  • [Dev Deps] update eslint, @ljharb/eslint-config, aud, auto-changelog, core-js, get-own-property-symbols d84bdfa
  • [Tests] fix linting errors 0df3070
  • [actions] add "Allow Edits" workflow 1e6bc29
  • [Dev Deps] update eslint, @ljharb/eslint-config, tape 36cea2a
  • [Dev Deps] update eslint, @ljharb/eslint-config, aud, tape 1278338
  • [Dev Deps] update eslint, @ljharb/eslint-config, aud, tape 1493254
  • [Dev Deps] update eslint, @ljharb/eslint-config, core-js b090bf2
  • [actions] switch Automatic Rebase workflow to pull_request_target event 4addb7a
  • [Dev Deps] update auto-changelog, tape 81d0baf
  • [Dev Deps] update auto-changelog; add aud 1a4e561
  • [readme] remove unused testling URLs 3000941
  • [Tests] only audit prod deps 692e974
  • [Dev Deps] update @ljharb/eslint-config 51c946c

v1.0.1 - 2019-11-16

Commits

  • [Tests] use shared travis-ci configs ce396c9
  • [Tests] up to node v12.4, v11.15, v10.15, v9.11, v8.15, v7.10, v6.17, v4.9; use nvm install-latest-npm 0690732
  • [meta] add auto-changelog 2163d0b
  • [Dev Deps] update eslint, @ljharb/eslint-config, core-js, safe-publish-latest, tape 8e0951f
  • [actions] add automatic rebasing / merge commit blocking b09cdb7
  • [Dev Deps] update eslint, @ljharb/eslint-config, safe-publish-latest, core-js, get-own-property-symbols, tape 1dd42cd
  • [meta] create FUNDING.yml aa57a17
  • Only apps should have lockfiles a2d8bea
  • [Tests] use npx aud instead of nsp or npm audit with hoops 9e96cb7
  • [meta] add funding field a0b32cf
  • [Dev Deps] update safe-publish-latest cb9f0a5

v1.0.0 - 2016-09-19

Commits