Skip to main content
Typescript exercise

Exclua somente depois da confirmação

Sign in to hand in your solution and get feedback.

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; }