Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion chapters/classes_and_objects/type-function.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Use the following function:

## Discussion

This function was modeled on jQuery's $.type function. (http://api.jquery.com/jQuery.type/)
This function was modeled on jQuery's [$.type function](http://api.jquery.com/jQuery.type/).

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.

Expand Down