mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 18:07:49 +00:00
Apply even more let/const transforms.
This commit is contained in:
@@ -41,7 +41,7 @@ import isArray from './isArray.js';
|
||||
* // => objects for ['barney']
|
||||
*/
|
||||
function filter(collection, predicate) {
|
||||
var func = isArray(collection) ? arrayFilter : baseFilter;
|
||||
const func = isArray(collection) ? arrayFilter : baseFilter;
|
||||
return func(collection, baseIteratee(predicate, 3));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user