Collect.js unique() Method
The unique() method is used to return the all of the unique values in the collection. Syntax: collect(array).unique() Parameters: The collect() method takes one argument that is converted into the collection and then unique() method is applied on it. Return Value: This method returns all of the uniq