• Checks if the given shape type matches the expected type.

    Parameters

    Returns boolean

    true if the given shape type is of the expected shape type, false otherwise

    var polygon = new ...
    ShapeType.contains(polygon.type, ShapeType.POLYGON); //true