Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The most useful library I built is "dome()" a javascript function that would return a dom element out of an array. So that dome(["a",{href:"http://news.ycombinator.com"},["img",{src:"http://news.ycomb..."}]]) would return a clickable icon for example.

I wrote the function in 2007 and I'm still using it today. It's a handful lines of code.



I think you would like http://thi.ng/hdom




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

Search: