Home / Function/ isPrimitive() — vue Function Reference

isPrimitive() — vue Function Reference

Architecture documentation for the isPrimitive() function in util.ts from the vue codebase.

Entity Profile

Dependency Diagram

graph TD
  7ce22b46_ffa0_d052_2b70_6ef17b86c493["isPrimitive()"]
  5622921f_54b9_3c35_daaf_e1a5562f01a0["normalizeChildren()"]
  5622921f_54b9_3c35_daaf_e1a5562f01a0 -->|calls| 7ce22b46_ffa0_d052_2b70_6ef17b86c493
  1440068e_e497_905d_990b_b0c74b435762["normalizeArrayChildren()"]
  1440068e_e497_905d_990b_b0c74b435762 -->|calls| 7ce22b46_ffa0_d052_2b70_6ef17b86c493
  14dd3d9c_2894_3049_ac41_2970261c2033["default.render()"]
  14dd3d9c_2894_3049_ac41_2970261c2033 -->|calls| 7ce22b46_ffa0_d052_2b70_6ef17b86c493
  style 7ce22b46_ffa0_d052_2b70_6ef17b86c493 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/shared/util.ts lines 26–34

export function isPrimitive(value: any): boolean {
  return (
    typeof value === 'string' ||
    typeof value === 'number' ||
    // $flow-disable-line
    typeof value === 'symbol' ||
    typeof value === 'boolean'
  )
}

Subdomains

Frequently Asked Questions

What does isPrimitive() do?
isPrimitive() is a function in the vue codebase.
What calls isPrimitive()?
isPrimitive() is called by 3 function(s): default.render, normalizeArrayChildren, normalizeChildren.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free