How to check value in a string?
<p>I have a value here:</p>

<pre><code>itemList[i].ul.li.div[1].div[2].p
</code></pre>

<p>Which is</p>

<p>Updated <code>n</code> minutes ago, where <code>n</code> can be any number.</p>

<p>How do I check what <code>n</code> is in that string?</p>

<p>So I can add it to an if statement, i.e.</p>

<pre><code>if( n &lt; 10 ) {
alert("less than 10");
} else {
alert("more than 10")
}
</code></pre>
