Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let products = [
- [{"id": 10, "price": 50},{"id": 20, "price": 60}]
- [{"id": 7, "price": 40}]
- ];
- /* pytanie pierwsze: jak zrobić sume "price" dla products[0] a jak dla wszystkich elementów?
- pytanie drugie: czy taka konstrukcja nie wystarczy, bo wiemy co jest wybrane w każdym kroku? /*
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement