* * @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)
| 10623 | * expected string. |
| 10624 | */ |
| 10625 | function beginsWith(begin, whole) { |
| 10626 | if (whole.indexOf(begin) === 0) { |
| 10627 | return whole.substr(begin.length); |
| 10628 | } |
| 10629 | } |
| 10630 | |
| 10631 | |
| 10632 | function stripHash(url) { |
no outgoing calls
no test coverage detected