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

Function beginsWith

test/angular/1.4/angular.js:11724–11728  ·  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

11722 * expected string.
11723 */
11724function beginsWith(begin, whole) {
11725 if (whole.indexOf(begin) === 0) {
11726 return whole.substr(begin.length);
11727 }
11728}
11729
11730
11731function stripHash(url) {

Callers 4

LocationHtml5UrlFunction · 0.70
LocationHashbangUrlFunction · 0.70
$LocationProviderFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected