isMap
Modified on Mon, 21 Aug 2023
Description
Use this function to check if a value is classified as a Map object.
Syntax
isMap(value)
Returns
Return Value | Description |
---|---|
True/False | Returns true if the given value is classified as a Map object and false otherwise. |
Sample
Example | Result | Description |
---|---|---|
isMap(new Map()) | true | Returns true if the given value is a Map object, in this case, it returns true because we provided a Map instance. |
isMap('Hello') | false | Returns false if the given value is not a Map object, in this case, it returns false because 'Hello' is not a Map object. |
To view all the Language functions, click here.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article