I'm having trouble displaying the content of two arrays contained within an object. When I map over RType.information.Type, I can display the content of the "Type" array. However, I am unable to display both Type[] and Price[]. I've tried various methods but have not been successful. If anyone is able to provide assistance, please let me know!
JS CODE
RType.information.Type.map(function (type) {
RType.information.Price.map(function (price) {
return m(
m('td.item-name', m('h4', `CLASS: ${type}`)),
m('td.item-name', m('h4', `PRICE: ${price}`))
);
});
});
OBJECT
var RType = {
information : {
Type : ["value1", "value2"],
Price : ["112", "200"]
}
};