Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@stdlib/assert-has-tostringtag-support

Package Overview
Dependencies
Maintainers
4
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stdlib/assert-has-tostringtag-support

Detect native Symbol.toStringTag support.

  • 0.2.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
4
Created

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

@stdlib/assert-has-tostringtag-support is a package that allows you to check if the environment supports the `Symbol.toStringTag` property. This property is used to customize the default string description of objects.

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

Check for Symbol.toStringTag support

This feature allows you to check if the current JavaScript environment supports the `Symbol.toStringTag` property. The code sample demonstrates how to use the package to perform this check and log the result.

const hasToStringTagSupport = require('@stdlib/assert-has-tostringtag-support');

if (hasToStringTagSupport()) {
  console.log('Environment supports Symbol.toStringTag');
} else {
  console.log('Environment does not support Symbol.toStringTag');
}

Other packages similar to @stdlib/assert-has-tostringtag-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