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

Function beginsWith

test/angular/1.2/angular.js:9310–9314  ·  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

9308 * expected string.
9309 */
9310function beginsWith(begin, whole) {
9311 if (whole.indexOf(begin) === 0) {
9312 return whole.substr(begin.length);
9313 }
9314}
9315
9316
9317function stripHash(url) {

Callers 3

LocationHtml5UrlFunction · 0.70
LocationHashbangUrlFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected