Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- const data {
- }
- */
- Object.keys(data).forEach(key=>{
- if(Array.isArray(data[key])){
- data[key].forEach(item=>{
- if(item["userGroupAccesses"]){
- item.userGroupAccesses = []
- }
- if(item["organisationUnits"]){
- item.organisationUnits = []
- }
- })
- }
- });
Add Comment
Please, Sign In to add comment