summaryrefslogtreecommitdiff
path: root/u/types/object.ts
diff options
context:
space:
mode:
Diffstat (limited to 'u/types/object.ts')
-rw-r--r--u/types/object.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/u/types/object.ts b/u/types/object.ts
new file mode 100644
index 0000000..fe97999
--- /dev/null
+++ b/u/types/object.ts
@@ -0,0 +1 @@
+export const isObject = (o: unknown): o is object => typeof o === 'object' && !Array.isArray(o) && !!o;