Exclua somente depois da confirmação

Log in om je oplossingen te testen.
type Checkin = { id: string; message: string; ownerId: string; favorite: boolean; }; function excluirCheckin( checkins: Checkin[], id: string, confirmado: boolean, ): Checkin[] { // Implemente a exclusão por ID respeitando a confirmação. return checkins; }