Tree.

isMaplike(obj)

Returns true if the indicated object is a sync or async map — or is a maplike objectthat can be converted to one by wrapping it with a class like ObjectMap.

$ ori "Tree.isMaplike(new Map())"
true
$ ori Tree.isMaplike {}
true
$ ori Tree.isMaplike []
true

See also isMap, a stricter test that returns true only if its input is already a map.