MCPcopy Create free account
hub / github.com/angular-ui/ui-grid / beginsWith

Function beginsWith

lib/test/angular/1.5.0/angular.js:12152–12156  ·  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

12150 * expected string.
12151 */
12152function beginsWith(begin, whole) {
12153 if (whole.indexOf(begin) === 0) {
12154 return whole.substr(begin.length);
12155 }
12156}
12157
12158
12159function stripHash(url) {

Callers 4

LocationHtml5UrlFunction · 0.70
LocationHashbangUrlFunction · 0.70
$LocationProviderFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected