CollectionsampleOn this pagesample_.sample(collection) # Ⓢ [Ⓣ][1] Ⓝ Gets a random element from collection. Since 2.0.0 Arguments collection (Array|Object): The collection to sample. Returns (*): Returns the random element. Example _.sample([1, 2, 3, 4]);// => 2