time-to-botec/js/node_modules/@stdlib/assert/has-symbol-support/README.md
NunoSempere b6addc7f05 feat: add the node modules
Necessary in order to clearly see the squiggle hotwiring.
2022-12-03 12:44:49 +00:00

1.9 KiB

Symbol Support

Detect native Symbol support.

Usage

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

hasSymbolSupport()

Detects if a runtime environment supports ES2015 Symbol.

var bool = hasSymbolSupport();
// returns <boolean>

Examples

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

var bool = hasSymbolSupport();
if ( bool ) {
    console.log( 'Environment has Symbol support.' );
} else {
    console.log( 'Environment lacks Symbol support.' );
}

CLI

Usage

Usage: has-symbol-support [options]

Options:

  -h,    --help                Print this message.
  -V,    --version             Print the package version.

Examples

$ has-symbol-support
<boolean>