MCPcopy
hub / github.com/slowlydev/f1-dash / isObject

Function isObject

dashboard/src/lib/merge.ts:1–3  ·  view source on GitHub ↗
(obj: unknown)

Source from the content-addressed store, hash-verified

1const isObject = (obj: unknown): obj is Record<string, unknown> => {
2 return obj !== null && typeof obj === "object" && !Array.isArray(obj);
3};
4
5export const merge = (base: unknown, update: unknown): unknown => {
6 if (isObject(base) && isObject(update)) {

Callers 1

mergeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected