I have two arrays and I want to merge them into one while extracting only certain elements...
I am using axios with vueJS.
(9) [{…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}]
0:
Nombredejours: 1.5
Task: {id: "52edcb0e-450f-4de7-b70d-b63e047d243d", name: "ABSENCE", description: "", start: "2019-10-03T00:00:00.000Z", end: "2099-10-02T00:00:00.000Z", …}
TaskId: "52edcb0e-450f-4de7-b70d-b63e047d243d"
User: {id: "93d04717-1e1e-41f7-8777-b89ac373a900", lastname: "Le Luron", firstname: "David", email: "<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="b7d3d6c1ded399dbd29adbc2c5d8d9f7c7d8dbcedad8d9c399d1c5">[email protected]</a>", password: "$2a$10$FEZbZz.Ik83iMRGuOd7Lse.udgVZH1daLE/wdSR4Q3csWNY.KOLc6", …}
UserId: "93d04717-1e1e-41f7-8777-b89ac373a900"
UserNumber: 1
createdAt: "2019-10-03T15:18:03.000Z"
end: "2019-10-12T00:00:00.000Z"
heuredebut: "13:00:00"
heurefin: "18:00:00"
id: "03d71d77-3627-4830-9c1e-811a2a58b505"
start: "2019-10-10T00:00:00.000Z"
updatedAt: "2019-10-03T15:18:03.000Z"
__proto__: Object
1:
Nombredejours: 2
What I want:
start: "2019-10-10T00:00:00.000Z"
and
timeStart: "13:00:00"
To achieve this,
start: '2018-11-19 10:35',