mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-06 17:47:49 +00:00
Apply more let/const transforms.
This commit is contained in:
2
some.js
2
some.js
@@ -41,7 +41,7 @@ import isIterateeCall from './_isIterateeCall.js';
|
||||
* // => true
|
||||
*/
|
||||
function some(collection, predicate, guard) {
|
||||
var func = isArray(collection) ? arraySome : baseSome;
|
||||
const func = isArray(collection) ? arraySome : baseSome;
|
||||
if (guard && isIterateeCall(collection, predicate, guard)) {
|
||||
predicate = undefined;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user