MCPcopy Create free account
hub / github.com/EricSimons/ionic-course / beginsWith

Function beginsWith

code/songhop/www/lib/angular/angular.js:10506–10510  ·  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

10504 * expected string.
10505 */
10506function beginsWith(begin, whole) {
10507 if (whole.indexOf(begin) === 0) {
10508 return whole.substr(begin.length);
10509 }
10510}
10511
10512
10513function stripHash(url) {

Callers 3

LocationHtml5UrlFunction · 0.70
LocationHashbangUrlFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected