move helpers to new workspace folder

This commit is contained in:
itsMapleLeaf
2022-10-14 13:22:55 -05:00
parent acbf21842f
commit 0be321b64e
29 changed files with 284 additions and 36 deletions

View File

@@ -0,0 +1,7 @@
export function isObject<T>(
value: T,
): value is Exclude<T, Primitive | AnyFunction> {
return typeof value === "object" && value !== null
}
type Primitive = string | number | boolean | undefined | null
type AnyFunction = (...args: any[]) => any