is-map-x

v2.1.2
Detect whether or not an object is an ES6 Map.
ES6 isMap module javascript nodejs browser

Travis status Dependency status devDependency status npm version jsDelivr hits bettercodehub score Coverage Status

is-map-x

Detect whether or not an object is an ES6 Map.

module.exports(object)boolean

Determine if an object is a Map.

Kind: Exported function
Returns: boolean - true if the object is a Map, else false.

Param Type Description
object * The object to test.

Example

import isMap from 'is-map-x';

const m = new Map();

console.log(isMap([])); // false
console.log(isMap(true)); // false
console.log(isMap(m)); // true
npm i is-map-x

Metadata

  • MIT
  • >=8.11.4
  • Graham Fairweather
  • released 8/28/2019

Downloads

Maintainers