is-jquery-obj

check if object is a jQuery object

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
is-jquery-obj
100.1.15 years ago5 years agoMinified + gzip package size for is-jquery-obj in KB

Readme

jQuery Object Identification
Provides a function that checks if the given object is a jQuery object.

Usage

const isJQueryObj = require('is-jquery-obj');
 
if(isJQueryObj($('#element')))
    console.log('$ is a jQuery object.');
    
if(!isJQueryObj({ foo: 'bar' }))    
    console.log('A regular JavaScript object is not a jQuery object.');