Closed
Description
The docs at this location: http://api.jquery.com/jquery-2/
Has this demo code:
var a = { what: "A regular JS object" },
b = $('body');
if ( a.jquery ) { // falsy, since it's undefined
alert(' a is a jQuery object! ');
}
if ( b.jquery ) { // truthy, since it's a string
alert(' b is a jQuery object! ');
}
Shouldn't the first alert be "a is NOT a jQuery object"?
Metadata
Metadata
Assignees
Labels
No labels