so i have an array .. with many objects, .. but i want to modify what is inside each object.. but not sure how to go about it. before
[{ filePath: 'stuff/stuff/someplace/',
path: '/events/places/and/things',
info:
{ layout: 'event-single',
permalink: '/events/enigma-2018/',
title: 'Enigma',
location: 'Santa Clara, CA',
description: 'a discription',
start: 2018-01-30T00:00:00.000Z,
end: 2018-02-01T00:00:00.000Z,
address: '101 Great American Pkwy, Santa Clara, CA',
}
}]
desired after
[
{
permalink: '/events/enigma-2018/',
title: 'Enigma',
location: 'Santa Clara, CA',
description: 'a discription',
start: 2018-01-30T00:00:00.000Z,
end: 2018-02-01T00:00:00.000Z,
address: '101 Great American Pkwy, Santa Clara, CA',
}
]
this array only has one object for this example, but it would be many objects i would be modifying in the same way ..(edited) i think .map should be used.. but thats all i know