# Map Support > Detect native [`Map`][mdn-map] support.
## Usage ```javascript var hasMapSupport = require( '@stdlib/assert/has-map-support' ); ``` #### hasMapSupport() Detects if a runtime environment supports ES2015 [`Map`][mdn-map]. ```javascript var bool = hasMapSupport(); // returns ```
## Examples ```javascript 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 ```text Usage: has-map-support [options] Options: -h, --help Print this message. -V, --version Print the package version. ```
### Examples ```bash $ has-map-support ```