Это мой массив
someArray = [
{
city: colombo1,
text: 'name1',
newArray[ date: 2018-09-29T18:30:00.000Z, discription: 'none']
}
{
city: colombo2,
text: 'name',
newArray[ date: 2018-10-10T07:03:43.835Z, discription: 'none']
}
];
Я хочу обновить свой массив, как показано ниже
someArray = [
{
city: colombo1,
text: 'name1',
newArray[ date: Sun Sep 30 2018 00:00:00 GMT+0530 (India Standard Time), discription: 'none']
}
{
city: colombo2,
text: 'name',
newArray[ date: Wed Oct 10 2018 14:05:27 GMT+0530 (India Standard Time), discription: 'none']
}
];
Я пытаюсь использовать map()
для обновления моего массива.Но я не могу понять логику, чтобы сделать это.Кто-нибудь может мне помочь, пожалуйста.Спасибо