is-map-x

2.1.2 • Public • Published

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

Package Sidebar

Install

npm i is-map-x

Weekly Downloads

172

Version

2.1.2

License

MIT

Unpacked Size

311 kB

Total Files

11

Last publish

Collaborators

  • xotic750