title: Is there any String.startsWith(String) for angularJS
body: <p>I have similar to following working code</p>
  
  <pre><code>&lt;section class="row-fluid result" ng-repeat="result in getResults()"&gt;
  &lt;p&gt;{{result.name}}&lt;/p&gt;
  &lt;p&gt;{{result.link}}&lt;/p&gt;
  &lt;/section&gt;
  </code></pre>
  
  <p>the <code>result</code> have another property called resultId
  where <code>result.resultId</code> will return one of following source prefixes: One, Two,Three.</p>
  
  <p>For example these are typical resultId: <code>One3244243, One23036043, Two3890234, Three23114232</code></p>
  
  <p>Whereas prefixes means:</p>
  
  <pre><code>One=Source ABC
  Two=Source XYZ
  Three=Source WXY
  </code></pre>
  
  <p>So, now I want to also display the sources of the each result based on result's id 
  prefixes:</p>
  
  <pre><code>&lt;section class="row-fluid result" ng-repeat="result in getResults()"&gt;
  &lt;p&gt;{{result.name}}&lt;/p&gt;
  &lt;p&gt;{{result.link}}&lt;/p&gt;
  &lt;p&gt;&lt;!-- display 'Source ABC' if result.resultId starts with One --&gt; &lt;/p&gt;
  &lt;p&gt;&lt;!-- display 'Source XYZ' if result.resultId starts with Two--&gt; &lt;/p&gt;
  &lt;p&gt;&lt;!-- display 'Source WXY' if result.resultId starts with Three --&gt; &lt;/p&gt;
  
  &lt;/section&gt;
  </code></pre>