* A specialized version of `_.sampleSize` for arrays. * * @private * @param {Array} array The array to sample. * @param {number} n The number of elements to sample. * @returns {Array} Returns the random elements.
(array, n)
| 10164 | * @returns {Array} Returns the random elements. |
| 10165 | */ |
| 10166 | function arraySampleSize(array, n) { |
| 10167 | return shuffleSelf(copyArray(array), baseClamp(n, 0, array.length)); |
| 10168 | } |
| 10169 | |
| 10170 | /** |
| 10171 | * A specialized version of `_.shuffle` for arrays. |
nothing calls this directly
no test coverage detected