TypeError: Cannot read properties of undefined (reading 'includes')

It’s interesting that radio[0] contains a full string since global.get() returns a string and therefore radio[0] should only be the first character of that string.

The problem is likely the off-by-one counter in your loop (it should be count < radio.length).

1 Like