Function isLocatable

  • Checks if the given object is a locatable (either a point or a shape)

    Parameters

    • o: any

      the object to check

    Returns o is Locatable

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