mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-05 09:27:49 +00:00
Apply more let/const transforms.
This commit is contained in:
@@ -30,7 +30,7 @@ function sampleSize(collection, n, guard) {
|
||||
} else {
|
||||
n = toInteger(n);
|
||||
}
|
||||
var func = isArray(collection) ? arraySampleSize : baseSampleSize;
|
||||
const func = isArray(collection) ? arraySampleSize : baseSampleSize;
|
||||
return func(collection, n);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user