PhysicsJS - How to find a body by its label (or other value)
<p>How should the findOne method be properly used? (<a href="http://wellcaffeinated.net/PhysicsJS/docs/#Physics-world-prototype-findOne" rel="nofollow">http://wellcaffeinated.net/PhysicsJS/docs/#Physics-world-prototype-findOne</a>)</p>

<p>This code returns the error: Uncaught TypeError: Cannot read property 'label' of undefined</p>

<pre><code>var theBall = world.findOne([{ label: ball }];
</code></pre>