Skip to content

Instantly share code, notes, and snippets.

@akorchev
Created April 1, 2014 07:21
Show Gist options
  • Save akorchev/9909403 to your computer and use it in GitHub Desktop.
Save akorchev/9909403 to your computer and use it in GitHub Desktop.
var children = [];
for (var i = 0; i < a.length; ++i) {
children[i] = dom("li", a[i]);
}
return dom("ul", children);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment