Technical Elements Documentation
    Preparing search index...

    Function safeGet

    • Helper function to safely access a property from an object that might not have TypeScript definitions

      Type Parameters

      • T

      Parameters

      • obj: any

        The object to access

      • key: string

        The property key

      • defaultValue: T

        Default value if property doesn't exist

      Returns T

      The property value or default value