|
|
||
|---|---|---|
| .. | ||
| bin | ||
| docs | ||
| etc | ||
| lib | ||
| package.json | ||
| README.md | ||
Map Support
Detect native
Mapsupport.
Usage
var hasMapSupport = require( '@stdlib/assert/has-map-support' );
hasMapSupport()
Detects if a runtime environment supports ES2015 Map.
var bool = hasMapSupport();
// returns <boolean>
Examples
var hasMapSupport = require( '@stdlib/assert/has-map-support' );
var bool = hasMapSupport();
if ( bool ) {
console.log( 'Environment has Map support.' );
} else {
console.log( 'Environment lacks Map support.' );
}
CLI
Usage
Usage: has-map-support [options]
Options:
-h, --help Print this message.
-V, --version Print the package version.
Examples
$ has-map-support
<boolean>