Checkbox Change Event Typescript Array Length Arduino Nano