Socket
Book a DemoInstallSign in
Socket

@stdlib/assert-has-symbol-support

Package Overview
Dependencies
Maintainers
4
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stdlib/assert-has-symbol-support

Detect native Symbol support.

latest
Source
npmnpm
Version
0.2.2
Version published
Maintainers
4
Created

What is @stdlib/assert-has-symbol-support?

@stdlib/assert-has-symbol-support is a package that allows you to check if the runtime environment supports ES6 symbols. This can be useful for ensuring compatibility and feature detection in JavaScript applications.

What are @stdlib/assert-has-symbol-support's main functionalities?

Check Symbol Support

This feature allows you to check if the current environment supports ES6 symbols. The function returns a boolean value indicating the presence or absence of symbol support.

const hasSymbolSupport = require('@stdlib/assert-has-symbol-support');

if (hasSymbolSupport()) {
  console.log('Symbols are supported.');
} else {
  console.log('Symbols are not supported.');
}

Other packages similar to @stdlib/assert-has-symbol-support

Keywords

stdlib

FAQs

Package last updated on 27 Jul 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.