mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-08 10:17:48 +00:00
Apply even more let/const transforms.
This commit is contained in:
2
every.js
2
every.js
@@ -46,7 +46,7 @@ import isIterateeCall from './_isIterateeCall.js';
|
||||
* // => false
|
||||
*/
|
||||
function every(collection, predicate, guard) {
|
||||
var func = isArray(collection) ? arrayEvery : baseEvery;
|
||||
const func = isArray(collection) ? arrayEvery : baseEvery;
|
||||
if (guard && isIterateeCall(collection, predicate, guard)) {
|
||||
predicate = undefined;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user