Looking at an array filled with various arrays, I am aiming to pinpoint the shortest path available within the paths
array.
paths = [
["LEFT", "RIGHT", "RIGHT", "BOTTOM", "TOP"],
["RIGHT", "LEFT", "TOP"],
["TOP", "LEFT"]
];
paths.map((path)=> Math.min(path.length));