Здесь у меня есть массив.
let dataList= [
{
"VersionId": 475,
"DocumentVersionFieldId": 1105,
"VariantId": 4597,
"ElementId": 1019,
"FuelTypeId": 4,
"VariantStructureWeek": "201817",
"SalesVersion": "1",
"MarketingCode": "1",
"Option": "1",
"SequenceNo": 1,
"VariantExtendedValue": [],
"cocVariantElementValues": [
{
"VersionId": 475,
"DocumentVersionFieldId": 1105,
"VariantId": 4597,
"ElementId": 1017,
"ElementVariantId": 9548,
"VariantValue": "uy",
"IsRecordVisible": false,
"cocElementLanguageDataCollection": [
{
"ElementVariantId": 9548,
"LanguageId": 0,
"LanguageCode": "EN",
"TranslationValue": "uy"
},
{
"ElementVariantId": 9548,
"LanguageId": 0,
"LanguageCode": "AL",
"TranslationValue": "jh"
},
{
"ElementVariantId": 9548,
"LanguageId": 0,
"LanguageCode": "DE",
"TranslationValue": "hj"
},
{
"ElementVariantId": 9548,
"LanguageId": 0,
"LanguageCode": "UR",
"TranslationValue": "jh"
}
]
}
],
"isRowDeleted": false,
"operationIndicators": 0,
"isMultiLanguage": true,
"IsRecordVisible": true,
"isShowUp": false,
"IsNewRow": false
}
]
Я хочу очистить значение следующих элементов от вышеуказанного массива.
Это ниже ожидаемого.
[
{
"VersionId": 475,
"DocumentVersionFieldId": 1105,
"VariantId": 4597,
"ElementId": 1019,
"FuelTypeId": 4,
"VariantStructureWeek": "201817",
"SalesVersion": "1",
"MarketingCode": "1",
"Option": "1",
"SequenceNo": 1,
"VariantExtendedValue": [],
"cocVariantElementValues": [
{
"VersionId": 475,
"DocumentVersionFieldId": 1105,
"VariantId": 4597,
"ElementId": 1017,
"ElementVariantId": 9548,
"VariantValue": "",//here
"IsRecordVisible": false,
"cocElementLanguageDataCollection": [
{
"ElementVariantId": 9548,
"LanguageId": 0,
"LanguageCode": "EN",
"TranslationValue": "",//here
},
{
"ElementVariantId": 9548,
"LanguageId": 0,
"LanguageCode": "AL",
"TranslationValue": "",//here
},
{
"ElementVariantId": 9548,
"LanguageId": 0,
"LanguageCode": "DE",
"TranslationValue": "",//here
},
{
"ElementVariantId": 9548,
"LanguageId": 0,
"LanguageCode": "UR",
"TranslationValue": "",//here
}
]
}
],
"isRowDeleted": false,
"operationIndicators": 0,
"isMultiLanguage": true,
"IsRecordVisible": true,
"isShowUp": false,
"IsNewRow": false
}
]
Есть простой способ или мне нужно пройти через него и удалить их вручную?