Archived
1
0

refactor(util): remove unused isObject function (#5183)

This commit is contained in:
Joe Previte 2022-05-09 17:24:25 -07:00 committed by GitHub
parent 3207bfd4ad
commit cd78f32dc0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -435,10 +435,6 @@ export const buildAllowedMessage = (t: any): string => {
return `Allowed value${values.length === 1 ? " is" : "s are"} ${values.map((t) => `'${t}'`).join(", ")}` return `Allowed value${values.length === 1 ? " is" : "s are"} ${values.map((t) => `'${t}'`).join(", ")}`
} }
export const isObject = <T extends object>(obj: T): obj is T => {
return !Array.isArray(obj) && typeof obj === "object" && obj !== null
}
/** /**
* Return a promise that resolves with whether the socket path is active. * Return a promise that resolves with whether the socket path is active.
*/ */