* * @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)
| 12150 | * expected string. |
| 12151 | */ |
| 12152 | function beginsWith(begin, whole) { |
| 12153 | if (whole.indexOf(begin) === 0) { |
| 12154 | return whole.substr(begin.length); |
| 12155 | } |
| 12156 | } |
| 12157 | |
| 12158 | |
| 12159 | function stripHash(url) { |
no outgoing calls
no test coverage detected