Skip to content

Commit 65118b7

Browse files
author
Anika Tabassum
committed
Update type-function link
1 parent 0a40646 commit 65118b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

chapters/classes_and_objects/type-function.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Use the following function:
3030

3131
## Discussion
3232

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/).
3434

3535
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.
3636

0 commit comments

Comments
 (0)