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

Function beginsWith

lib/test/angular/1.4.3/angular.js:11254–11258  ·  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

11252 * expected string.
11253 */
11254function beginsWith(begin, whole) {
11255 if (whole.indexOf(begin) === 0) {
11256 return whole.substr(begin.length);
11257 }
11258}
11259
11260
11261function stripHash(url) {

Callers 3

LocationHtml5UrlFunction · 0.70
LocationHashbangUrlFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected