async function f() {
let payload = {};
let schedule = await parser();
payload.message = schedule[0].date;
return payload;
}
// использование
f().then((payload) => {
console.log(payload);
});
handleNoteDel = index => {
const notes = [...this.state.notes];
notes.splice(index, 1);
this.setState({ notes });
}
handleNoteDel = index => {
this.setState({
notes: this.state.notes.filter((_, i) => i !== index),
});
}