JavaScript Curly braces argument as function parameter
<p>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. </p>

<p>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?:</p>

<pre><code>addToCart(product) {
    reactor.dispatch(ADD_TO_CART, { product })
}
</code></pre>

<p>Thx</p>