is-jquery-obj

check if object is a jQuery object

MIT 2 个版本
安装
npm install is-jquery-obj
yarn add is-jquery-obj
pnpm add is-jquery-obj
bun add is-jquery-obj
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.');
版本列表
0.1.1 2019-01-30
0.1.0 2019-01-14