MCPcopy Index your code
hub / github.com/angular-ui/ui-router / beginsWith

Function beginsWith

test/angular/1.3/angular.js:10625–10629  ·  view source on GitHub ↗

* * @param {string} begin * @param {string} whole * @returns {string} returns text from whole after begin or undefined if it does not begin with * expected string.

(begin, whole)

Source from the content-addressed store, hash-verified

10623 * expected string.
10624 */
10625function beginsWith(begin, whole) {
10626 if (whole.indexOf(begin) === 0) {
10627 return whole.substr(begin.length);
10628 }
10629}
10630
10631
10632function stripHash(url) {

Callers 4

LocationHtml5UrlFunction · 0.70
LocationHashbangUrlFunction · 0.70
$LocationProviderFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected