lodash.js fiddle
Added lodash from cdnjs.com in order to have lodash capabilities in chrome.
by Rajesh Sitaraman
HTML
<script src="//cdnjs.cloudflare.com/ajax/libs/lodash.js/1.2.1/lodash.min.js"></script>
JavaScript
var array = [{
"id": "5edbb290-f2bf-4aa0-a7e5-77ef1d534566",
"name": "Americas",
"href": "",
"childnodes": [{
"id": "b1641f14-f475-41a9-bbca-d3e7b83367c8",
"name": "Austin",
"href": "https://frogdesign.sharepoint.com/studios/tx",
"childnodes": []
}, {
"id": "f2fcc550-31d4-4c0b-bac0-3c9ac03af846",
"name": "Boston",
"href": "https://frogdesign.sharepoint.com/studios/bo",
"childnodes": []
}, {
"id": "9f242624-216f-41a6-8e63-29229b34eb7c",
"name": "New York",
"href": "https://frogdesign.sharepoint.com/studios/ny/",
"childnodes": []
}, {
"id": "42ee958f-0ea5-4bda-948c-f10a99ade5bd",
"name": "San Francisco",
"href": "https://frogdesign.sharepoint.com/studios/ca",
"childnodes": []
}, {
"id": "a7ce4359-0698-4c3d-bbf9-cc1d2fbd028f",
"name": "Seattle",
"href": "https://frogdesign.sharepoint.com/studios/wa",
"childnodes": []
}]
}, {
"id": "e5e6e724-f705-4c09-8db7-c6aeffdb2284",
"name": "Asia & Pacific",
"href": "/",
"childnodes": [{
"id": "fc802ebf-e113-43a7-8ead-1d49bd153934",
"name": "Shanghai",
"href": "https://frogdesign.sharepoint.com/studios/sh",
"childnodes": []
}, {
"id": "53c04c6f-7453-43dc-96ec-277ba623e9a2",
"name": "Sidney",
"href": "https://frogdesign.sharepoint.com/studios/au",
"childnodes": []
}, {
"id": "c071da5d-4372-4f72-98b9-674049ce252e",
"name": "Singapore",
"href": "https://frogdesign.sharepoint.com/studios/sg/",
"childnodes": []
}]
}, {
"id": "88b2da54-343c-461e-a516-98c450eb880f",
"name": "Europe",
"href": "/",
"childnodes": [{
"id": "9a17d9a7-63a1-4555-88fc-42a87627bcbb",
"name": "Amsterdam",
"href": "https://frogdesign.sharepoint.com/studios/AM",
"childnodes": []
}, {
"id": "3a1793a0-370e-48a7-9fc0-68271a4d18fd",
"name": "London",
"href": "https://frogdesign.sharepoint.com/studios/lo",
"childnodes": []
}, {
"id":...