* * @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)
| 11252 | * expected string. |
| 11253 | */ |
| 11254 | function beginsWith(begin, whole) { |
| 11255 | if (whole.indexOf(begin) === 0) { |
| 11256 | return whole.substr(begin.length); |
| 11257 | } |
| 11258 | } |
| 11259 | |
| 11260 | |
| 11261 | function stripHash(url) { |
no outgoing calls
no test coverage detected