GeoLeaf Core API - v3.0.0
    Preparing search index...
    • Recursively merges source into target, returning the merged object.

      ⚠️ Arrays are replaced, not concatenated — a source array wins whole. That is what makes a profile able to override a default list rather than grow it.

      Type Parameters

      • T extends Record<string, unknown>

      Parameters

      • target: T

        Base object. Returned as-is when source is not an object.

      • source: Record<string, unknown> | null | undefined

        Values taking precedence; null or undefined leaves target untouched.

      Returns T

      The merged object.