mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-02 08:07:50 +00:00
Move internal modules to “internal” folder.
This commit is contained in:
15
.internal/arrayShuffle.js
Normal file
15
.internal/arrayShuffle.js
Normal file
@@ -0,0 +1,15 @@
|
||||
import copyArray from './.internal/copyArray.js';
|
||||
import shuffleSelf from './.internal/shuffleSelf.js';
|
||||
|
||||
/**
|
||||
* A specialized version of `shuffle` for arrays.
|
||||
*
|
||||
* @private
|
||||
* @param {Array} array The array to shuffle.
|
||||
* @returns {Array} Returns the new shuffled array.
|
||||
*/
|
||||
function arrayShuffle(array) {
|
||||
return shuffleSelf(copyArray(array));
|
||||
}
|
||||
|
||||
export default arrayShuffle;
|
||||
Reference in New Issue
Block a user