From 1200859c078a0c5f94f56cb19c4c43e93f4861ee Mon Sep 17 00:00:00 2001 From: Ryan Bowlen Date: Mon, 15 Oct 2018 16:29:05 -0500 Subject: [PATCH] Added Solution (#19367) Added a solution for the challenge's "Get a Hint" documentation. --- .../check-if-an-object-has-a-property.english.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-data-structures/check-if-an-object-has-a-property.english.md b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-data-structures/check-if-an-object-has-a-property.english.md index 2d1bb7fc3c..5fff574223 100644 --- a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-data-structures/check-if-an-object-has-a-property.english.md +++ b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-data-structures/check-if-an-object-has-a-property.english.md @@ -75,6 +75,8 @@ console.log(isEveryoneHere(users));
```js -// solution required +function isEveryoneHere(obj) { + return users.hasOwnProperty('Alan', 'Jeff', 'Sarah', 'Ryan'); +} ```