Distribute data into corresponding categories

Each item in dataset includes a "PlanName". Retrieve first character of said plan name, and use it to push the plan object into corresponding key of final organized object.

by lasha

HTML

<ul className="search_statePlans">
    <li>
        All {this.props.segment} plans in {this.props.state}
    </li>
    <li className="active">
        <div className="search_statePlans-title">#ABC</div>
        <ul className="search_statePlans-innerList">
            {arr0.map((item, index) => {
                return (
                    <li key={index} onClick={() => this.itemClick(item.UN_ID)}>
                        {item.PlanName}
                    </li>  
                );
            })}
        </ul>
    </li>
</ul>

JavaScript

var data = [{"UN_ID":0,"MCoid":699000000,"PayerName":"1199 NATIONAL BENEFIT FUND","PlanName":"1199 NATIONAL BENEFIT FUND [COMMERCIAL]","StateName":"New York","State":"NY","Segment":"Commercial MCO","Indication":"HCHL","MarketSharePercentage":0,"Self Insured Lives":0,"PlanLives":0,"Fully Insured Lives":0,"Medical Lives":0,"Pharmacy Lives":0,"Drug_Name":"Repatha","Preferred_Status":"Preferred status not indicated","PA_Required":"Yes","URL_to_PA_Form":"Data Not Available","General_PA_Form":"https://www.1199seiubenefits.org/wp-content/uploads/2010/12/140.pdf","Tier_Placement":3,"Age_Limit":"18+","Dosing_Limitation_Desc":"Not Applicable","Quantity_Limitation_Desc":"Not Applicable","Initial_Auth_Time_Length":"12 months","Recert_Time_Length":"PA Required No Criteria Exist","Step_Therapy_Notes":"Failure of one high intensity statin AND Zetia","Specific_PA_Criteria_Details":"The patient has tried one high-intensity statin therapy  (i.e., atorvastatin > 40 mg daily; rosuvastatin tablets > 20 mg daily [as a single-entity or as combination product])* AND Zetia (ezetimibe tablets) [as a single-entity or  a combination product]) for > or = 8 continouos weeks [documentation required]; AND the LDL-C  level after this treatment regimen remains > or = 70 mg/dL [documentation required]","LDL_C_Levels_Requirement":"Yes","Specialty_Consultation_Required":"PA required no criteria exist","ASCVD_LDL_C_Level_Requirement_Description":"> or =  160 mg/dL","HEFH_LDL_C_Level_Requirement_Description":"> or =  160 mg/dL"},{"UN_ID":35,"MCoid":101000000,"PayerName":"AETNA","PlanName":"AETNA - NATIONAL [COMMERCIAL]","StateName":"New York","State":"NY","Segment":"Commercial MCO","Indication":"HCHL","MarketSharePercentage":5.57,"Self Insured Lives":349606,"PlanLives":778088,"Fully Insured Lives":428482,"Medical Lives":839866,"Pharmacy Lives":565610,"Drug_Name":"Repatha","Preferred_Status":"Preferred status not...