I'm trying to remove an object which is nested in another object by using the sub-object key.
Example:
var myMainObj = {
'subObjA' = {
'randomstuff' : 1,
'randomstuff2' : 2,
},
'subObjB' = {
'randomstuff' : 1,
'randomstuff2' : 2,
}
}
Now how would I go about completely remove the object "subObjB" if I know the keyname of it?