I am not very experienced with javascript and have a question relating to curly braces used around a function parameter, since its not a JSON structure.
I am learning nuclear js, and I found some code as example, but I don't understand it well - why is "product" is in braces?:
addToCart(product) {
reactor.dispatch(ADD_TO_CART, { product })
}
Thx