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:
parent
0f3bc75982
commit
e9e6fe859e
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user