t
const properties = [...];
for (i = 0, kek = arr.find((object) => object[properties[i]] !== undefined; i < properties length; i++, kek = arr.find((object) => object[properties[i]]) {
if(!kek) continue;
doSomethingWithFoundObject(kek);
break
}
Size: a a a
t
const properties = [...];
for (i = 0, kek = arr.find((object) => object[properties[i]] !== undefined; i < properties length; i++, kek = arr.find((object) => object[properties[i]]) {
if(!kek) continue;
doSomethingWithFoundObject(kek);
break
}
S
const properties = [...];
for (i = 0, kek = arr.find((object) => object[properties[i]] !== undefined; i < properties length; i++, kek = arr.find((object) => object[properties[i]]) {
if(!kek) continue;
doSomethingWithFoundObject(kek);
break
}
t
const properties = [...];
for (i = 0, kek = arr.find((object) => object[properties[i]] !== undefined; i < properties length; i++, kek = arr.find((object) => object[properties[i]]) {
if(!kek) continue;
doSomethingWithFoundObject(kek);
break
}
AD
AD
AD
С
В
const properties = [...];
for (i = 0, kek = arr.find((object) => object[properties[i]] !== undefined; i < properties length; i++, kek = arr.find((object) => object[properties[i]]) {
if(!kek) continue;
doSomethingWithFoundObject(kek);
break
}
В
let find = (objs, [key, ...keys]) => objs.find((obj) => obj.hasOwnProperty(key)) || (keys.length ? find(objs, keys) : null);
S
let find = (objs, [key, ...keys]) => objs.find((obj) => obj.hasOwnProperty(key)) || (keys.length ? find(objs, keys) : null);
КУ
КУ
MH