Convert an Array into Associative Array using reduce in Javascript
const names = ['John', 'Mike', 'Nash'] const age = [32, 33, 56] const people = names.reduce((accumulator, currentValue, currentIndex) => {…
const names = ['John', 'Mike', 'Nash'] const age = [32, 33, 56] const people = names.reduce((accumulator, currentValue, currentIndex) => {…
Object.keys(mydict).forEach(mykey => { console.log(mydict[mykey]) })