P
Size: a a a
s
const regionsCities = {};
await Promise.all(
regions.map(async (region) => {
const cities = await univerModel.find({ region }).distinct("city");
regionsCities[region] = cities;
})
);
t
А
let a = new Date()
let b = a
a.setDate(1)
a.getDate() // 1
b.getDate() // 1 (нужно исходное значение)
t
let b = new Date(a)
AD
t
t
AD
t