Function isShape

  • Checks if the given object is a shape. It determines this by checking if the object has the shift and moveTo methods

    Parameters

    • o: any

      the object to check

    Returns o is Shape

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