This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | on(setMenuChildrenOpen, (state, { parentId, childrenId }) => { | |
| const result = state.map(parent => { | |
| if (parent.subAppId === parentId) { | |
| if (parent.children && parent.children?.length) { | |
| const chilResult = parent.children.map(child => { | |
| if (child.subAppId === childrenId) { | |
| return { | |
| ...child, | |
| isAlreadyOpen: true | |
| } | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | const example = [ | |
| { | |
| name: 'Miles Toms', | |
| age: 33, | |
| city: 1, | |
| office: 1, | |
| job: 1, | |
| lenguage: 1 | |
| }, | |
| { | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | // just copy and paste into your console and go on | |
| const example = [ | |
| { | |
| name: 'Miles Toms', | |
| age: 33, | |
| city: 'Brazil' | |
| }, | |
| { | |
| name: 'Jhones Miller', | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | const myData = [ | |
| {id:1, name:'data1'}, {id: 2, name: 'data2'}, {id:3, name: 'data3'} | |
| ]; | |
| async function mapJSFunc(currentValue) { | |
| const url = 'https://api.github.com/?callback=foo' | |
| return fetch(url) | |
| .then(data => { | |
| if (data.status === 200) { | |
| return data; |