Apply for Zend Framework Certification Training

Javascript




< First Getting Started With CodeIgniter URL Routing >



const cattype = ['scooter','car','toothbrush']
const models =[
    ['bajaj','lml','lembrada'],
    ['ford','tata','maruti'],
    ['colgate','binaca','philips']
]


const combineObjects = (models,cattype)=>{
    const comArray = {};
    cattype.forEach((els,ctyp) => {
        comArray[els] = models[ctyp]
     
    },comArray);
    return comArray

}
console.log(combineObjects(models,cattype))

< First Getting Started With CodeIgniter URL Routing >



Ask a question



  • Question:
    {{questionlistdata.blog_question_description}}
    • Answer:
      {{answer.blog_answer_description  }}
    Replay to Question


Back to Top