isPlainObject() — tailwindcss Function Reference
Architecture documentation for the isPlainObject() function in deep-merge.ts from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD 2dacf643_3af3_ced5_8784_dc1356541f05["isPlainObject()"] 4c30b1b3_1514_10e0_6b6c_251cab3f6b7b["deep-merge.ts"] 2dacf643_3af3_ced5_8784_dc1356541f05 -->|defined in| 4c30b1b3_1514_10e0_6b6c_251cab3f6b7b a21213f9_9467_d282_d4f1_fcb2cf2ae2fc["deepMerge()"] a21213f9_9467_d282_d4f1_fcb2cf2ae2fc -->|calls| 2dacf643_3af3_ced5_8784_dc1356541f05 78c8b616_5d61_b046_efc3_274ea6b73960["mergeThemeExtension()"] 78c8b616_5d61_b046_efc3_274ea6b73960 -->|calls| 2dacf643_3af3_ced5_8784_dc1356541f05 style 2dacf643_3af3_ced5_8784_dc1356541f05 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/tailwindcss/src/compat/config/deep-merge.ts lines 1–8
export function isPlainObject<T>(value: T): value is T & Record<keyof T, unknown> {
if (Object.prototype.toString.call(value) !== '[object Object]') {
return false
}
const prototype = Object.getPrototypeOf(value)
return prototype === null || Object.getPrototypeOf(prototype) === null
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does isPlainObject() do?
isPlainObject() is a function in the tailwindcss codebase, defined in packages/tailwindcss/src/compat/config/deep-merge.ts.
Where is isPlainObject() defined?
isPlainObject() is defined in packages/tailwindcss/src/compat/config/deep-merge.ts at line 1.
What calls isPlainObject()?
isPlainObject() is called by 2 function(s): deepMerge, mergeThemeExtension.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free