KG
Size: a a a
KG
В
KG
KG
KG
В
DE
const a = [
{
name: 'Mike',
phone: '8-555-000',
balance: 345,
orders: [
{ price: 456, count: 3 },
{ price: 100, count: 0 },
],
},
{
name: '',
phone: '8-555-300',
balance: 500,
orders: [
{ price: 400, count: 3 },
{ price: 0, count: 1 },
],
},
]
const c = (o) => Object.values(o).flatMap(
(v) => typeof v === 'object' ? c(v) : v
).filter(Boolean)
a.flatMap(c)
MM
MM
MM
MM
В
MM