S
result = ...
из циклаSize: a a a
S
result = ...
из циклаAP
РР
B
DS
const carValues = auto.filter(prop => prop.type === "car").map(prop => prop.value);
const mean = carValues.reduce((a,b) => a+b) / carValues.length;
напримерю код не проверял, но принцип такойDS
РР
B
DS
DS
РР
j
val()
R
[
{
event: invited to team,
invitedUser: Jack,
madeBy: userA,
},
{
event: invited to team,
invitedUser: Bob,
madeBy: userA
},
{
event: invited to team,
invitedUser: David,
madeBy: userB
}
]
Bob, Jack invited to team by userA
David invited to team by userB
РР
val()
j
[
{
event: invited to team,
invitedUser: Jack,
madeBy: userA,
},
{
event: invited to team,
invitedUser: Bob,
madeBy: userA
},
{
event: invited to team,
invitedUser: David,
madeBy: userB
}
]
Bob, Jack invited to team by userA
David invited to team by userB
R
AB
SS
T