Message from JavaScript discussions

February 2018

— No you haven't

— 

Yes, i did, Array [panels] == [{panel}{panel}{panel}....], Object {panel} == {...someProps... panels: {panels}}

— Runnable code

— What is the structure of panels ?
what is the structure of panel ?
what is the structure of someProps ?

Message permanent page

— Show an actual object

— Panels: [
{
title: 'title #1'
content: 'content'
}
{
title: 'title #2'
panels: [
{
title: 'title #2-1'
content: 'text2-1'
}
{
title: 'title #2-2'
panels: [
{
title: 'title #2-2-1'
content: 'text2-2-1'
}
{
title: 'title #2-2-2'
content: 'text2-2-2'
}
{
title: 'title #2-2-3'
content: 'text2-2-3'
}
]
}
{
title: 'title #2-3'
content: 'text2-3'
}
]
}
{
title: 'title #3'
content: 'text3'
}
]

Message permanent page

— Alright, so this is the initial object?

— Yes

— What does the object you want to subtract with look like?

— It will be some keys in any of the object inside

— ?

— So if you subtract 'content', it should remove all content values in the whole tree?