Skip to content

Commit

Permalink
chore: minor style fix (vitejs#3257)
Browse files Browse the repository at this point in the history
  • Loading branch information
brillout committed May 4, 2021
1 parent b4e517d commit 2421deb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/vite/src/node/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ export function prettifyUrl(url: string, root: string): string {
export function isObject(value: unknown): value is Record<string, any> {
return Object.prototype.toString.call(value) === '[object Object]'
}

export function isDefined<T>(value: T | undefined | null): value is T {
return value !== undefined && value !== null
}
Expand Down

0 comments on commit 2421deb

Please sign in to comment.