Hacker News new | past | comments | ask | show | jobs | submit login

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.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact