Innovenergy_trunk/frontend/node_modules/is-jquery-obj
Kim 085d7c68ba adding untracked frontend and typescript files 2023-02-21 07:27:20 +01:00
..
.gitattributes adding untracked frontend and typescript files 2023-02-21 07:27:20 +01:00
.publishrc adding untracked frontend and typescript files 2023-02-21 07:27:20 +01:00
LICENSE adding untracked frontend and typescript files 2023-02-21 07:27:20 +01:00
README.md adding untracked frontend and typescript files 2023-02-21 07:27:20 +01:00
appveyor.yml adding untracked frontend and typescript files 2023-02-21 07:27:20 +01:00
index.js adding untracked frontend and typescript files 2023-02-21 07:27:20 +01:00
package.json adding untracked frontend and typescript files 2023-02-21 07:27:20 +01:00
test.js adding untracked frontend and typescript files 2023-02-21 07:27:20 +01:00

README.md

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.');