Hacker News new | ask | show | jobs
by derekbreden 2850 days ago
I think the purpose of 'aeach' is not to rename, but to provide a conversion. 'aeach' converts to an array in order to be able to perform a 'forEach' on the non-array NodeLists.

The 3 elements being removed are the tr containing the story options, a literal whitespace node, and a tr used as a spacer.

I agree it is a coupling, and while accurate to describe as fragile or even really fragile, I personally would not have used those words.

I would feel more comfortable daring to make changes in this html and JavaScript than any other front-end code I've worked with in the last 15 years of my career. If for no other reason, the sheer small size of it and lack of external dependencies that you mentioned.