Guest User

Untitled

a guest
Dec 17th, 2018
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. [{
  2. ...
  3. status: 'enable'
  4. },{
  5. ...
  6. status: 'enable'
  7. }...]
  8.  
  9. if(obj.status === 'enable')
  10. obj.status = 'disable'
  11. else
  12. obj.status = 'enable'
  13.  
  14. Mapping[obj.status] = !Mapping[obj.status] // this should change the status value
Add Comment
Please, Sign In to add comment