Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

is-map-x

Xotic7502.1kMIT2.1.2

Detect whether or not an object is an ES6 Map.

ES6, isMap, module, javascript, nodejs, browser

readme

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