_.unique([1, 2, 1, 3, 2, 4]); // returns [1, 2, 3, 4]
_.unique(["apple", "banana", "apple", "orange", "banana"]); // returns ["apple", "banana", "orange"]This example takes an array of strings and returns a new array containing only the unique values in the original array. This function is part of the underscore.js package library.