Get the smallest array from an array of arrays
<p>I have an array of arrays, I want to get the smallest (shortest) path from <code>paths</code> array</p>

<pre><code>paths = [ 
   ["LEFT", "RIGHT", "RIGHT", "BOTTOM", "TOP"],
   ["RIGHT", "LEFT", "TOP"],
   ["TOP", "LEFT"]
];

paths.map((path)=&gt; Math.min(path.length));
</code></pre>