4 ms·
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 appendChil
by wolfgang42 6y ago
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.