Guest User

Untitled

a guest
Aug 19th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. [
  2. {
  3. "forums": "",
  4. "resource": {
  5. "dhjName": "myvhp",
  6. "dhj": {
  7. "areaProgramValue": "123",
  8. "areaQuotas": [
  9. {
  10. "areaQuotaValue": "1234",
  11. "name": "acc"
  12. },
  13. {
  14. "areaQuotaValue": "12345",
  15. "name": "pro"
  16. }
  17. ],
  18. "methodType": "DGH",
  19.  
  20. }
  21. },
  22. "task": "create"
  23. },
  24. {
  25. "forums": "",
  26. "resource": {
  27. "dhjName": "myvhp",
  28. "dhj": {
  29. "areaProgramValue": "123",
  30. "areaQuotas": [
  31. {
  32. "areaQuotaValue": "1234",
  33. "name": "acc"
  34. },
  35. {
  36. "areaQuotaValue": "12345",
  37. "name": "pro"
  38. },
  39. {
  40. "areaQuotaValue": "511158557706551298"
  41. },
  42. {
  43. "areaQuotaValue": "511158557706551298"
  44. }
  45. ],
  46. "methodType": "DGH",
  47.  
  48. }
  49. },
  50. "task": "create"
  51. },
  52.  
  53. ]
  54.  
  55. test = test.filter((obj) => typeof obj.resource.dhj.areaQuotas.name === 'undefined');
Add Comment
Please, Sign In to add comment