* * @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)
| 9308 | * expected string. |
| 9309 | */ |
| 9310 | function beginsWith(begin, whole) { |
| 9311 | if (whole.indexOf(begin) === 0) { |
| 9312 | return whole.substr(begin.length); |
| 9313 | } |
| 9314 | } |
| 9315 | |
| 9316 | |
| 9317 | function stripHash(url) { |
no outgoing calls
no test coverage detected