_.isMap(value)

sourcenpm package

Checks if value is classified as a Map object.

Since

4.3.0

Arguments

  • value (*): The value to check.

Returns

(boolean): Returns true if value is a map, else false.

Example

  1. _.isMap(new Map);
    // => true
    _.isMap(new WeakMap);
    // => false