Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [{
- ...
- status: 'enable'
- },{
- ...
- status: 'enable'
- }...]
- if(obj.status === 'enable')
- obj.status = 'disable'
- else
- obj.status = 'enable'
- Mapping[obj.status] = !Mapping[obj.status] // this should change the status value
Add Comment
Please, Sign In to add comment