Socket
Socket
Sign inDemoInstall

@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.


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

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc