Skip to content

isPlainObject

isPlainObject(value): value is Record<string, unknown>

Defined in: merge.ts:9

Is value a plain object — a {} literal or Object.create(null) — as opposed to an array, class instance, Date, function, or null?

Only plain objects are deep-merged. Everything else (arrays, primitives, functions, class instances) replaces wholesale, which is what config files expect: you override a plugins array or a dev flag, you don’t merge it.

unknown

value is Record<string, unknown>