* * @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)
| 10504 | * expected string. |
| 10505 | */ |
| 10506 | function beginsWith(begin, whole) { |
| 10507 | if (whole.indexOf(begin) === 0) { |
| 10508 | return whole.substr(begin.length); |
| 10509 | } |
| 10510 | } |
| 10511 | |
| 10512 | |
| 10513 | function stripHash(url) { |
no outgoing calls
no test coverage detected