Home / Function/ isPlainObject() — tailwindcss Function Reference

isPlainObject() — tailwindcss Function Reference

Architecture documentation for the isPlainObject() function in deep-merge.ts from the tailwindcss codebase.

Entity Profile

Dependency Diagram

graph TD
  44ea0add_f78b_a0da_1851_38236796bf32["isPlainObject()"]
  982d7e72_5afc_4832_dfcb_f221e9d52c64["deepMerge()"]
  982d7e72_5afc_4832_dfcb_f221e9d52c64 -->|calls| 44ea0add_f78b_a0da_1851_38236796bf32
  6540f887_c4fb_c66b_6dde_c34158fdac0c["mergeThemeExtension()"]
  6540f887_c4fb_c66b_6dde_c34158fdac0c -->|calls| 44ea0add_f78b_a0da_1851_38236796bf32
  style 44ea0add_f78b_a0da_1851_38236796bf32 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
}

Subdomains

Frequently Asked Questions

What does isPlainObject() do?
isPlainObject() is a function in the tailwindcss codebase.
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