Message from JavaScript discussions

February 2018

— 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'
}
]

— 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?

— Yes!

— So you pretty much just want deepOmit?

— What happens if I want to omit 'panels'?

— Any array of panels that is a prop in the tree should be removed?