1
1
mirror of https://github.com/github/semantic.git synced 2024-11-25 11:04:00 +03:00

Recur through arrays.

This commit is contained in:
Rob Rix 2015-10-13 10:25:35 -04:00
parent 0f3bc75982
commit e9e6fe859e

View File

@ -34,7 +34,7 @@
if (json instanceof Array) {
console.log("it's an array");
for (index in json) {
console.log(json[index]);
div.appendChild(toDOM(json[index]));
}
} else if (json instanceof Object) {
for (key in json) {