News for hackers. Stuff that matters.
Re:A little bit of plain JavaScript can do a lot by wolfgang42 on Sunday June 21, 2020 @12:57PM (#23593268)
I like how short yours is—I really must use Object.assign() more. I hadn’t heard about append(); since my original version supported IE it had to use appendChild() in a loop and I never realized there was a better option.

It looks like append() also accepts strings directly. This eliminates the need for $T, which makes things even nicer.

There are no comments on this comment yet.