jquery/learn.jquery.com — pull request #546 by yatinmistry (2014-08-07 12:32:46+00:00)
Title: Update conditional-code.md

String parameter are not parsed to object

// Check if the property exists in the object.
if ( stuffToDo[ foo ] ) {
// This code won't run.
stuffToDo[ foo ]();
} else {
// This code will run.
stuffToDo[ "default" ]();
}