Checkbox Change Event Typescript Array Length In C