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: chapters/classes_and_objects/type-function.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,7 @@ Use the following function:
30
30
31
31
## Discussion
32
32
33
-
This function was modeled on jQuery's $.type function. (http://api.jquery.com/jQuery.type/)
33
+
This function was modeled on jQuery's [$.type function](http://api.jquery.com/jQuery.type/).
34
34
35
35
Note that, as an alternative to type checking, you can often use duck typing and the existential operator together to eliminating the need to examine an object's type, in certain cases. For example, here is exception-free code that pushes an element to an array, if myArray is in fact an array (or array-like, with a push function), and does nothing otherwise.
0 commit comments