TM
Size: a a a
TM
B
И
И
А
l1
l1
j
const data = [
new Date('1969-12-29'),
new Date('1969-12-31'),
new Date('1970-01-02')
]
const range = (dates) => {
const min = Math.min(...dates)
const max = Math.max(...dates)
for (const date of dates) {
console.log(`${date.toUTCString()} is ${(date - min) / ((max - min) / 100)}%`)
}
}
range(data)
B
j
И
И
GO
И
И
j
Promise.all(urls.map(url => fetch(url))).then(res => Promise.all(res.map(r => r.json()))).then(res => console.log(res))
GO