perf[utils]: optimize code

This commit is contained in:
Pan
2019-02-19 10:07:18 +08:00
parent 041075633f
commit 054e9c4a73
4 changed files with 8 additions and 10 deletions

View File

@@ -294,7 +294,3 @@ export function deepClone(source) {
export function uniqueArr(arr) {
return Array.from(new Set(arr))
}
export function isExternal(path) {
return /^(https?:|mailto:|tel:)/.test(path)
}