You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
lets explore ways to reduce this with functional programing,
constgetInputCriteria=(data,criteriaLocation: { fieldSetsIndex, inputIndex })=>{
...
returnvalue}// getInputCriteria(data[<sectionIndex>], criteriaLocation: { fieldSetsIndex, inputIndex });constdata=EN_DOLO_MOCK_DATA.data.lifeEventForm.sectionsEligibilityCriteriaconstrelationshipCriteria=getInputCriteria(data[0],criteriaLocation: {fieldSetsIndex: 1,inputIndex: 0,})// And then when we want to call dot notations we can call it from the criteria, ie.console.log(relationshipCriteria.id);console.log(relationshipCriteria.values[1].value);
User Story
No response
Acceptance Criteria
No response
The text was updated successfully, but these errors were encountered:
Description
we have lengthy dot notation assignments due to nested data,
for example:
current
lets explore ways to reduce this with functional programing,
User Story
No response
Acceptance Criteria
No response
The text was updated successfully, but these errors were encountered: