Skip to main content
Version: 7.0.0

isSketchCollection()

function isSketchCollection(
collection,
): collection is SketchCollection<SketchGeometryTypes>;

Check if object is a SketchCollection. Any code inside a block guarded by a conditional call to this function will have type narrowed to SketchCollection

Parameters

ParameterType
collectionany

Returns

collection is SketchCollection<SketchGeometryTypes>