* Determines if str begins with prefix. * @param {string} str * @param {string} prefix * @return {boolean}
(str, prefix)
| 19 | * @return {boolean} |
| 20 | */ |
| 21 | function hasPrefix(str, prefix) { |
| 22 | return str.indexOf(prefix) == 0; |
| 23 | } |
| 24 | |
| 25 | /** |
| 26 | * Convenience function to detect whether an argument is a URL. If not, |
no outgoing calls
no test coverage detected