what is the proper way to setup this code. I want to user select checkbox and value of that checkbox to be pushed into FormArray now I get [true,false,fal
FormArray
[true,false,fal
You can merge value received from formArray with data:
formArray
data
newCheckboxValue.map((value, index) => value ? data[index] : null).filter(value => value)
Transforming bool array to array of labels/null, then removing null