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
  21757970_4272_76c4_4694_eec1d8abb2f6["isPlainObject()"]
  6496e14a_c764_9611_76f5_9db2d4cacd3b["deepMerge()"]
  6496e14a_c764_9611_76f5_9db2d4cacd3b -->|calls| 21757970_4272_76c4_4694_eec1d8abb2f6
  b16566fb_b078_7bbb_de84_44baf6fd3c21["mergeThemeExtension()"]
  b16566fb_b078_7bbb_de84_44baf6fd3c21 -->|calls| 21757970_4272_76c4_4694_eec1d8abb2f6
  style 21757970_4272_76c4_4694_eec1d8abb2f6 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

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