JSFiddle - React, Tailwind, and code Playground
JavaScript
var a = {
"livingroom": [
{
"app": "",
"name": "s1",
"thumbnail": "https://storage.googleapis.com/peterbucket/istagingViewer/sigstaging.com.tw/Cuiti/study/web/thumb_floorplan1.jpg"
}
],
"bedroom": [],
"study": [
{
"app": "",
"name": "s0",
"thumbnail": "https://storage.googleapis.com/peterbucket/istagingViewer/sigstaging.com.tw/Cuiti/study/web/thumb_floorplan3.jpg"
}
],
"outdoor": [],
"other": [],
"id": "-KF28-_Vdve-u3498eQ1",
"name": "Cuiti"
}
var _localArray = []
for(var keys in a){
if(Object.prototype.toString.call(a[keys] ) === '[object Array]' && a[keys].length>=1) {
_localArray.push(a[keys]);
}
}
console.log(_localArray[0]);