mirror of
https://github.com/oxc-project/oxc.git
synced 2026-09-14 19:36:11 +08:00
1ccaf767d6
Final clean up. - Share `isObject()` function - Clean up directory structure - Use `Error.cause` for TS hint error
3 lines
113 B
TypeScript
3 lines
113 B
TypeScript
export const isObject = (v: unknown): v is object =>
|
|
typeof v === "object" && v !== null && !Array.isArray(v);
|