Braze JavaScript SDK
    Preparing search index...

    Function setUserFirstName

    • Sets the first name of the current user.

      Parameters

      • firstName: string | null

        Limited to 255 characters in length. Accepts an explicit null value to null out attribute.

      Returns Promise<boolean | undefined>

      Resolves to a boolean that indicates whether the update was successfully enqueued. Resolves to undefined if the SDK is not initialized.