• scan all elements until we find one in the given direction Note - only horizontal at the moment

    Parameters

    • currentLocation: number
    • boundary: number
    • children: any
    • isLeft: boolean
    • defaultValue: number = 0

    Returns number