hasintermediateconst m = new Map([['a', 1]])
m.has('a') // β true
m.has('z') // β falseUse Map.has() to check whether a key exists in the map.
has() checks object keys by reference.
Challenge: Verify that has() returns true only for the same object reference.