From e3f8a40c1c142a577574e6dd849c6b8956bde6f9 Mon Sep 17 00:00:00 2001 From: EbrahimAlenezi Date: Tue, 22 Jul 2025 18:47:44 +0100 Subject: [PATCH] working on itt --- src/movies.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/movies.ts b/src/movies.ts index 3dd9e0c..987f7dc 100644 --- a/src/movies.ts +++ b/src/movies.ts @@ -53,9 +53,7 @@ const movies: Movie[] = [ * hasKey({ title: "Inception", year: 2010 }, "director"); // => false */ function hasKey(obj: object, key: string): boolean { - // write your code here... - - return true; // replace true with what you see is fit + return key in obj; // replace true with what you see is fit } /**