JSFiddle - React, Tailwind, and code Playground

by Udhay

JavaScript

var response ={'u01a1': {activity: 'Activity 1', code:'Activit code 01'},
								'u01a2': {activity: 'Activity 2', code:'Activit code 02'},
                'u01a3': {activity: 'Activity 3', code:'Activit code 03'}
							}
    
var errorLists = [];
var myCollecion = Object.keys(response).map((key) => {
    var val = response[key];
    //errorLists.push(val);
		debugger;
    return val;
		//console.log(myCollecion);
  });


              

console.log(response);