* 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)
| 13053 | * @returns {Array} Returns the random elements. |
| 13054 | */ |
| 13055 | function arraySampleSize(array, n) { |
| 13056 | return shuffleSelf(copyArray(array), baseClamp(n, 0, array.length)); |
| 13057 | } |
| 13058 | |
| 13059 | /** |
| 13060 | * A specialized version of `_.shuffle` for arrays. |
nothing calls this directly
no test coverage detected