SS
Size: a a a
SS
МП
SS
SS
МП
SS
S
<button>Click me</button>.
on('click', function(){});
S
<button>Click me</button>.
on('click', function(){});
S
====================================================V
const DATA = [
{
id: 1,
name: "asd",
groups: [
{
id: 1,
name: "group1",
title: "someTitle"
}
]
},
{
id: 2,
name: "www",
groups: [
{
id: 2,
name: "someName",
title: "someTitle2"
}
]
}
]
DATA .filter(s => {
return s.groups.find(i => i.id === id).title;
})S
const DATA = [
{
id: 1,
name: "asd",
groups: [
{
id: 1,
name: "group1",
title: "someTitle"
}
]
},
{
id: 2,
name: "www",
groups: [
{
id: 2,
name: "someName",
title: "someTitle2"
}
]
}
]
DATA .filter(s => {
return s.groups.find(i => i.id === id).title;
})
S
const DATA = [
{
id: 1,
name: "asd",
groups: [
{
id: 1,
name: "group1",
title: "someTitle"
}
]
},
{
id: 2,
name: "www",
groups: [
{
id: 2,
name: "someName",
title: "someTitle2"
}
]
}
]
DATA .filter(s => {
return s.groups.find(i => i.id === id).title;
})
S
====================================================МП
AR
МП
const DATA = [
{
id: 1,
name: "asd",
groups: [
{
id: 1,
name: "group1",
title: "someTitle"
}
]
},
{
id: 2,
name: "www",
groups: [
{
id: 2,
name: "someName",
title: "someTitle2"
}
]
}
]
DATA .filter(s => {
return s.groups.find(i => i.id === id).title;
})CM