Exclua somente depois da confirmação

Sign in to test your solution.
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; }