From cd78f32dc06f7f3ea518872df314b72f3cfafacd Mon Sep 17 00:00:00 2001 From: Joe Previte Date: Mon, 9 May 2022 17:24:25 -0700 Subject: [PATCH] refactor(util): remove unused isObject function (#5183) --- src/node/util.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/node/util.ts b/src/node/util.ts index b53a4ecf6..e33ad95bf 100644 --- a/src/node/util.ts +++ b/src/node/util.ts @@ -435,10 +435,6 @@ export const buildAllowedMessage = (t: any): string => { return `Allowed value${values.length === 1 ? " is" : "s are"} ${values.map((t) => `'${t}'`).join(", ")}` } -export const isObject = (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. */