Function isSelectableShape

  • Parameters

    • o: any

      Given an object, checks if it is a selectable shape (determinined by the presence of the select and deselect methods)

    Returns o is SelectableShape

    a boolean indicating whether the object is a selectable shape (intended to be used as a type guard)