UNPKG
npmchenwei111
Version:
latest (1.0.0)
1.0.0
test1111
npmchenwei111
/
app
/
utils
/
StringUtils.js
13 lines
(9 loc)
•
206 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
/** * Created by chenwei on 2017/8/25. */
class
StringUtils
{ isHttpOrHttps (url) {
return
url && (url.startsWith(
'https://'
) || url.startsWith(
'http://'
)) } }
export
default
new
StringUtils
()