Explanation and usage of array.takeWhile - Effect Community