-
Notifications
You must be signed in to change notification settings - Fork 0
/
odev4.js
35 lines (32 loc) · 1.12 KB
/
odev4.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/**
* Size verilen iki adet array’den
* uygun methodları kullanarak yeni
* bir object oluşturmanız gerekiyor.
* Ve bu obje key-value şeklinde
* doğru eşleştirme yapılarak
* oluşturulmalı.
*/
const input = {
"cols": ["Name Surname", "Company", "Email", "Date", "Country", "City"],
"data": [
["Hyacinth Vincent", "Duis Corporation", "[email protected]", "28/06/2022", "Eritrea", "Lyubertsy"],
["Brenden Martinez", "Volutpat Nunc Associates", "[email protected]", "24/03/2021", "British Indian Ocean Territory", "Colwood"]]
}
const sampleoutput = [
{
"Name Surname": "Hyacinth Vincent",
"Company": "Duis Corporation",
"Email": "[email protected]",
"Date": "28/06/2022",
"Country": "Eritrea",
"City": "Lyubertsy"
},
{
"Name Surname": "Brenden Martinez",
"Company": "olutpat Nunc Associates",
"Email": "[email protected]",
"Date": "24/03/2021",
"Country": "British Indian Ocean Territory",
"City": "Colwood"
}
]