@monorail hmmmmmmm
@monorail I think a while loop would be better but I'm not sure I would give enough of a shit in a code review because either way would look Weird
@monorail here's my final answer:
let i = 0;
for (
let idx = currentSignal.length;
i < matches[0].length && matches[0][idx] === matches.at(-1)[idx];
idx += i++
);
@monorail probably should be ++i. oh well!
@wallhackio @monorail idx should increment by 1 which is not what either of those would do
@wallhackio @monorail no.
@wallhackio @aescling if you want to increment by 1 every time, one way i like to do that is with += 1
@monorail @wallhackio damn holly how did you get so wise
@aescling @wallhackio by looking up "javascript shared prefix of multiple strings" on google and seeing a stack overflow page about it
@aescling @wallhackio oh sorry i thought this was a reply elsewhere
@monorail @wallhackio that is a good wisdom
@monorail @wallhackio baaaaall-eevee or not, i’m walking on air