Spring naar hoofdinhoud
Typescript-oefening

Exclua somente depois da confirmação

Meld je aan om je oplossing in te dienen en feedback te krijgen.

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