LT
export async function action(parametr) {
let result = await getData();
parametr.map(i => {
result = result.filter(el => el === i)
})
}
Хотя ваще не понятно, что ты пытаешься сделать
Size: a a a
LT
export async function action(parametr) {
let result = await getData();
parametr.map(i => {
result = result.filter(el => el === i)
})
}
S
export async function action(parametr) {
let result = await getData();
parametr.map(i => {
result = result.filter(el => el === i)
})
}
t
Promise.allSettled(arrayOfPromises).then((arrayOfResponses) => ...)
PC
export async function action(parametr) {
let result = await getData();
parametr.map(i => {
result = result.filter(el => el === i)
})
}
t
VL
Promise.allSettled(arrayOfPromises).then((arrayOfResponses) => ...)
arrayOfPromises
в твоем примере?V
arrayOfPromises
в твоем примере?fetchTagById
t
function request(argument) {
// Здесь логика запроса.
}
Promise
.allSettled(arrayOfArguments.map(request))
.then((arrayOfResponses) => arrayOfResponses.forEach(console.log))
S
function request(argument) {
// Здесь логика запроса.
}
Promise
.allSettled(arrayOfArguments.map(request))
.then((arrayOfResponses) => arrayOfResponses.forEach(console.log))
LN
А
CM
L
A
A