match multiple array values, with value correct order
<p>Suppose I have</p>

<pre><code> // the idea of the array below are ['from', 'to']
 var runA = [2,6]
 var runB = [4,1]

 var input = [1,4,2,6,2] 
</code></pre>

<p>How can match store to <code>runA</code>, so that of <code>2,6</code> are in the correct order? It should return true.</p>

<p>But for <code>runB</code>, it should return false, even if it contains both values 1, and 4, but does not match the correct 'from', 'to' order.</p>
