* * @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)
| 9200 | * expected string. |
| 9201 | */ |
| 9202 | function beginsWith(begin, whole) { |
| 9203 | if (whole.indexOf(begin) === 0) { |
| 9204 | return whole.substr(begin.length); |
| 9205 | } |
| 9206 | } |
| 9207 | |
| 9208 | |
| 9209 | function stripHash(url) { |
no outgoing calls
no test coverage detected