Skip to content

Commit 342778f

Browse files
committed
docs: document that get returns null when a property doesn't exist
1 parent bd87a08 commit 342778f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

reference/functions.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,8 @@ get(prop1, prop2, ...)
112112

113113
For example `.age` gets the property `age` from an object, and `.address.city` gets a nested property `city` inside an object `address`. To get the current value or object itself use function `get()` without properties.
114114

115+
The function returns `null` when a property does not exist.
116+
115117
Examples:
116118

117119
```js

0 commit comments

Comments
 (0)