diff options
author | Elizabeth Alexander Hunt <me@liz.coffee> | 2025-05-13 09:50:15 -0700 |
---|---|---|
committer | Elizabeth Alexander Hunt <me@liz.coffee> | 2025-05-13 09:50:15 -0700 |
commit | 2543ac8b11af11f034836591046cdb52911f9403 (patch) | |
tree | d2fa475348c9867aab2994e9914895a57db88d75 /utils/isObject.ts | |
parent | e49fda41176d025a671802be76c219d66167276f (diff) | |
download | ci-2543ac8b11af11f034836591046cdb52911f9403.tar.gz ci-2543ac8b11af11f034836591046cdb52911f9403.zip |
snapshot
Diffstat (limited to 'utils/isObject.ts')
-rw-r--r-- | utils/isObject.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/utils/isObject.ts b/utils/isObject.ts new file mode 100644 index 0000000..73f7f80 --- /dev/null +++ b/utils/isObject.ts @@ -0,0 +1,2 @@ +export const isObject = (o: unknown): o is object => + typeof o === "object" && !Array.isArray(o) && !!o; |