Technical Elements Documentation
    Preparing search index...

    Function asRecord

    • Helper function to safely convert a possibly undefined object to a record

      Type Parameters

      • T = any

      Parameters

      • obj: any

        The object to convert

      Returns Record<string, T>

      The object as a record or an empty object