I'm researching prototypes in JS.
I was able to make object.isMap() by code:
Map.prototype.isMap = function() { return this.__proto__.toString().toLowerCase().includes("map"); }