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
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -636,6 +636,10 @@ isClass(() => 5); // false
636
636
637
637
### isDefined
638
638
639
+
![fix][fix]
640
+
641
+
`4.1.2`: Fixes the return type `boolean`, which doesn't strictly indicate the `value` is defined by changing the `value` type to a generic `Type` and the return type to `value is Defined<Type>`.
642
+
639
643
Use `isDefined()` or `is.defined()` to check if a generic `Type``value` is **not** an `undefined` type and is **not** equal to `undefined`.
0 commit comments