Set Support

Detect native Set support.

Usage

var hasSetSupport = require( '@stdlib/utils/detect-set-support' );

hasSetSupport()

Detects if a runtime environment supports ES2015 Set.

var bool = hasSetSupport();
// returns <Boolean>

Examples

var hasSetSupport = require( '@stdlib/utils/detect-set-support' );

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

CLI

Usage

Usage: hasset [options]

Options:

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

Examples

$ hasset
<boolean>