The easiest API-documented way is to check the property .jquery:
function isjQuery(arg) {
return !!arg.jquery;
}
However, if you want to be sure , this is a jQuery object, and not some other object with a fake property .jquery, other answers suggesting instanceof jQueryand testing the work of the constructor too.
(.jquery , jQuery, API , jQuery.)