Returning early from a function when a condition is met avoids deep nesting and makes code easier to read.
Challenge: Write findFirst(arr, target) that:
findFirst(arr, target)
arr
target
-1