* 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)
| 2475 | * @returns {Array} Returns the random elements. |
| 2476 | */ |
| 2477 | function arraySampleSize(array, n) { |
| 2478 | return shuffleSelf(copyArray(array), baseClamp(n, 0, array.length)); |
| 2479 | } |
| 2480 | |
| 2481 | /** |
| 2482 | * A specialized version of `_.shuffle` for arrays. |
nothing calls this directly
no test coverage detected