Collection
Sample

_.sample(collection)

Gets a random element from collection.

Arguments

collection (Array|Object): The collection to sample.

Returns

(*): Returns the random element.

Example

Deep