* Convenience function to detect whether an argument is a URL. If not, * it may be a local file. * @param {string} url * @return {boolean}
(url)
| 29 | * @return {boolean} |
| 30 | */ |
| 31 | function isHttpOrHttpsUrl(url) { |
| 32 | return hasPrefix(url, 'http://') || hasPrefix(url, 'https://'); |
| 33 | } |
| 34 | |
| 35 | /** |
| 36 | * Creates a promise which reads from a file. |
no test coverage detected