You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+13-3Lines changed: 13 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -58,7 +58,7 @@ Proxy class for granting nullsafe abilities to an object.
58
58
59
59
No argument needed.
60
60
61
-
Nullish class with with nullsafe abilities. Instances will have a falsy boolean evaluation, equity comparison (`==`) to `None` and instance of `NullSafe` returns `True`, otherwise `False`. Identity comparison (`is`) to `None` will return `False`.
61
+
Nullish class with with nullsafe abilities. Instances will have a falsy boolean evaluation, equity comparison (`==`) to `None` and instance of `NullSafe` returns `True`, otherwise `False`. Identity comparison (`is`) to `None` will return `False`. It also has a `__call__` method that always returns `undefined`.
62
62
63
63
### variable `undefined: NullSafe`
64
64
@@ -114,6 +114,9 @@ assert _(o.existent).inexistent.nested is undefined
114
114
115
115
# o.maybe?.inexistent?.nested
116
116
assert _(_(o).maybe).inexistent.nested is undefined
0 commit comments