Collect.js prepend() Method
The prepend() method is used to add an item at the beginning of the given collection. Syntax: collect(array).prepend(value) Parameters: The collect() method takes one argument that is converted into the collection and then prepend() method is applied on it. The prepend() method holds the values that