Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let a = [{'id': '1', 'num': '10'}, { 'id': '1', 'num': '10'}, {'id': '2', 'num': '5'}]
- //kalau id nya sama maka di data(num) di tambah,
- //jadi hasilnya nanti jadi
- let a = [{'id': '1', 'num': '20'}, {'id': '2', 'num': '5'}]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement