未验证 提交 cd78f32d 编写于 作者: J Joe Previte 提交者: GitHub

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

上级 3207bfd4
...@@ -435,10 +435,6 @@ export const buildAllowedMessage = (t: any): string => { ...@@ -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.
*/ */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册