const findKey = (obj, fn) => Object.keys(obj).find(key => fn(obj[key], key, obj));