@salesforce/kit
    Preparing search index...

    Function set

    • Sets the value at path of object. If a portion of path doesn’t exist it’s created. Arrays are created for missing index properties while objects are created for all other missing properties. Use _.setWith to customize path creation.

      Type Parameters

      • T extends object

      Parameters

      • obj: T

        The object to modify.

      • path: string

        The path of the property to set.

      • value: unknown

        The value to set.

      Returns T

    • Type Parameters

      • R

      Parameters

      • obj: object
      • path: string
      • value: unknown

      Returns R

      set