* * @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)
| 11722 | * expected string. |
| 11723 | */ |
| 11724 | function beginsWith(begin, whole) { |
| 11725 | if (whole.indexOf(begin) === 0) { |
| 11726 | return whole.substr(begin.length); |
| 11727 | } |
| 11728 | } |
| 11729 | |
| 11730 | |
| 11731 | function stripHash(url) { |
no outgoing calls
no test coverage detected