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:
@@ -39,7 +39,7 @@ import negate from './negate.js';
|
||||
* // => objects for ['barney']
|
||||
*/
|
||||
function reject(collection, predicate) {
|
||||
var func = isArray(collection) ? arrayFilter : baseFilter;
|
||||
const func = isArray(collection) ? arrayFilter : baseFilter;
|
||||
return func(collection, negate(baseIteratee(predicate, 3)));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user