We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc29bbd commit 0f87177Copy full SHA for 0f87177
14_contains/README.md
@@ -1,3 +1,12 @@
1
# Exercise 14 - contains
2
3
Write a function that searches for a value in a nested object. It returns true if the object contains that value.
4
+
5
+Objects are compared by reference.
6
7
+Examples:
8
9
+```javascript
10
+contains({ foo: "foo" }, "bar") // true
11
+contains({ foo: { bar: "bar" } }, "bar") // true
12
+```
0 commit comments