Big update!Announcing Socket for GitHub 1.0. Learn more
Socket
BlogLoveFAQ
Install
Log in

is-symbol

Package Overview
Dependencies
1
Maintainers
1
Versions
5
Issues
File Explorer

Advanced tools

is-symbol

Determine if a value is an ES6 Symbol or not.

    1.0.4latest

Version published
Maintainers
1
Weekly downloads
26,709,483
increased by0.68%

Weekly downloads

Changelog

Source

v1.0.4 - 2021-05-08

Commits

Readme

Source

is-symbol Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

Is this an ES6 Symbol value?

Example

var isSymbol = require('is-symbol'); assert(!isSymbol(function () {})); assert(!isSymbol(null)); assert(!isSymbol(function* () { yield 42; return Infinity; }); assert(isSymbol(Symbol.iterator)); assert(isSymbol(Symbol('foo'))); assert(isSymbol(Symbol.for('foo'))); assert(isSymbol(Object(Symbol('foo'))));

Tests

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

Keywords

FAQs

What is is-symbol?

Determine if a value is an ES6 Symbol or not.

Is is-symbol popular?

The npm package is-symbol receives a total of 21,809,552 weekly downloads. As such, is-symbol popularity was classified as popular.

Is is-symbol well maintained?

We found that is-symbol demonstrated a not healthy version release cadence and project activity. It has 1 open source maintainer collaborating on the project.

Last updated on 08 May 2021
Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc