Collect.js takeWhile() Method
The takeWhile() method is used to return the items in the collection until the given callback returns false. If the callback never returns false, the takeWhile() method will return all items in the collection. Syntax: collect.takewhile()Parameters: The collect() method takes one argument that is con