mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-05 17:37:50 +00:00
Convert remaining vars to let/const.
This commit is contained in:
@@ -11,9 +11,10 @@ import keys from './keys.js';
|
||||
*/
|
||||
function createFind(findIndexFunc) {
|
||||
return (collection, predicate, fromIndex) => {
|
||||
let iteratee;
|
||||
const iterable = Object(collection);
|
||||
if (!isArrayLike(collection)) {
|
||||
var iteratee = baseIteratee(predicate, 3);
|
||||
iteratee = baseIteratee(predicate, 3);
|
||||
collection = keys(collection);
|
||||
predicate = key => iteratee(iterable[key], key, iterable);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user