function A(){
//how to alter persist to false here?
B(obj.options);
}
function B(options){
if(options.persist === true){ //do something }
}
I want to alter my nested object value. I can do it with one line, but what if I have many options's object? it's ugly I have to do it obj.options.a, obj.options.b, obj.options.c etc..