I have this Object:
mappingData: {
id_feed : "some data...",
mapping_name: "some data...",
xml_file_url: "some data...",
encoding: "some data...",
import_period: "some data...",
token: "some data...",
user_id: "some data...",
projectFieldOptions: [
{ some object data },
{ some object dat }
],
safety: {
action_negative_diff: "some data...",
action_positive_diff: "some data...",
action_diff: "some data...",
auto_update_title: "some data...",
auto_update_description: "some data...",
auto_update_images: "some data...",
import_product_variations: "some data...",
},
},
How can I empty this entire object properties value?
What I am trying is
for (const prop of Object.getOwnPropertyNames(this.mappingData)) {
delete this.mappingData[prop];
}