mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-06 01:47:48 +00:00
Remove references to _.
This commit is contained in:
@@ -6,14 +6,13 @@ import isArray from './isArray.js';
|
||||
* Gets a random element from `collection`.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @since 2.0.0
|
||||
* @category Collection
|
||||
* @param {Array|Object} collection The collection to sample.
|
||||
* @returns {*} Returns the random element.
|
||||
* @example
|
||||
*
|
||||
* _.sample([1, 2, 3, 4]);
|
||||
* sample([1, 2, 3, 4]);
|
||||
* // => 2
|
||||
*/
|
||||
function sample(collection) {
|
||||
|
||||
Reference in New Issue
Block a user