Guest User

Untitled

a guest
Feb 17th, 2019
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. /*
  2. const data {
  3.  
  4. }
  5. */
  6. Object.keys(data).forEach(key=>{
  7. if(Array.isArray(data[key])){
  8. data[key].forEach(item=>{
  9. if(item["userGroupAccesses"]){
  10. item.userGroupAccesses = []
  11. }
  12. if(item["organisationUnits"]){
  13. item.organisationUnits = []
  14. }
  15. })
  16. }
  17. });
Add Comment
Please, Sign In to add comment