* 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)
| 10075 | * @returns {Array} Returns the random elements. |
| 10076 | */ |
| 10077 | function arraySampleSize(array, n) { |
| 10078 | return shuffleSelf(copyArray(array), baseClamp(n, 0, array.length)); |
| 10079 | } |
| 10080 | |
| 10081 | /** |
| 10082 | * A specialized version of `_.shuffle` for arrays. |
nothing calls this directly
no test coverage detected