/is-map

Node module to easily check if an object is an ES6 Map

Primary LanguageJavaScriptMIT LicenseMIT

is-map Build Status

Node module to easily check if an object is an ES6 Map

Installation

$ npm install --save is-map

Usage

const isMap = require('is-map');

isMap(new Map());
//=> true

isMap({});
//=> false

Related

License

MIT © Arthur Verschaeve