Daily-Interview-Question
Daily-Interview-Question copied to clipboard
toArr()
function toArr(obj){
console.log(Object.keys(obj));
return Array.from({length:12},(v,k)=>{
if(obj[k+1]===undefined){console.log("ok"); return null}
else{return obj[k+1]}
})
}