How can I make javascript match the start of a string?
<p>I have the following coce:</p>

<pre><code>if (link.action === "Create") {
</code></pre>

<p>However my link.action could be:</p>

<pre><code>Create xxxx 
</code></pre>

<p>Is there a way I can change this match so it just checks for the start being "Create" ?</p>
