perf[utils]: optimize code

This commit is contained in:
Pan
2019-02-19 10:07:18 +08:00
parent 48e47e86f1
commit 070a3343f2
4 changed files with 8 additions and 10 deletions

View File

@@ -290,7 +290,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)
}