-`shouldContinueTaking` (`(item: T) => boolean`) The predicate function that is called with each element. Elements are included in the result as long as this function returns true.
### Returns
(`T[]`) A new array containing the elements taken from the beginning while the predicate returns `true`.