Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [
- {
- "forums": "",
- "resource": {
- "dhjName": "myvhp",
- "dhj": {
- "areaProgramValue": "123",
- "areaQuotas": [
- {
- "areaQuotaValue": "1234",
- "name": "acc"
- },
- {
- "areaQuotaValue": "12345",
- "name": "pro"
- }
- ],
- "methodType": "DGH",
- }
- },
- "task": "create"
- },
- {
- "forums": "",
- "resource": {
- "dhjName": "myvhp",
- "dhj": {
- "areaProgramValue": "123",
- "areaQuotas": [
- {
- "areaQuotaValue": "1234",
- "name": "acc"
- },
- {
- "areaQuotaValue": "12345",
- "name": "pro"
- },
- {
- "areaQuotaValue": "511158557706551298"
- },
- {
- "areaQuotaValue": "511158557706551298"
- }
- ],
- "methodType": "DGH",
- }
- },
- "task": "create"
- },
- ]
- test = test.filter((obj) => typeof obj.resource.dhj.areaQuotas.name === 'undefined');
Add Comment
Please, Sign In to add comment