is-jquery-obj

0.1.1 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i is-jquery-obj

Weekly Downloads

222,538

Version

0.1.1

License

MIT

Unpacked Size

3.46 kB

Total Files

8

Last publish

Collaborators

  • aleks-pro
  • aleksey_popov
  • dmitry-ostashev
  • miherlosev
  • kirovboris
  • alexkamaev