Description

Use this function to check if a value is classified as a Map object.

Syntax

isMap(value)

Returns

Return ValueDescription
True/FalseReturns true if the given value is classified as a Map object and false otherwise.

Sample

ExampleResultDescription
isMap(new Map())trueReturns true if the given value is a Map object, in this case, it returns true because we provided a Map instance.
isMap('Hello')falseReturns 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.