diff --git a/lodash.js b/lodash.js index 0725e9f12..8b3f5cbc0 100644 --- a/lodash.js +++ b/lodash.js @@ -7921,7 +7921,8 @@ } /** - * Gets `n` random elements from `collection`. + * Gets `n` random elements at unique keys from `collection` up to the + * size of `collection`. * * @static * @memberOf _ @@ -7931,8 +7932,11 @@ * @returns {Array} Returns the random elements. * @example * - * _.sampleSize([1, 2, 3, 4], 2); + * _.sampleSize([1, 2, 3], 2); * // => [3, 1] + * + * _.sampleSize([1, 2, 3], 4); + * // => [2, 3, 1] */ function sampleSize(collection, n) { var index = -1,