mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-08 02:17:48 +00:00
Apply more let/const transforms.
This commit is contained in:
@@ -18,7 +18,7 @@ import isArray from './isArray.js';
|
||||
* // => [4, 1, 3, 2]
|
||||
*/
|
||||
function shuffle(collection) {
|
||||
var func = isArray(collection) ? arrayShuffle : baseShuffle;
|
||||
const func = isArray(collection) ? arrayShuffle : baseShuffle;
|
||||
return func(collection);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user