code: function isMap(obj) {
      return (obj && typeof obj === OBJECT && !(typeof obj.length === NUMBER && !(obj.propertyIsEnumerable(LENGTH))));
    }
docs: Check an object is a map or not. A map is something like { key1: value1, key2: value2 }.