Every line of 'jquery typeof' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your JavaScript code is secure.
28 function isJqueryObject(oObj) { 29 var isJquery = false; 30 if(root.jQuery) 31 { 32 isJquery = oObj instanceof root.jQuery; 33 } 34 return isJquery; 35 36 }
384 function isJqueryObject(obj) { 385 386 return obj instanceof jQuery; 387 }
19 utils.typeOf = function typeOf (val) { 20 return Array.isArray(val) ? 'array' : typeof val 21 }
21 function getParameterType( param ) { 22 return ( param instanceof $ ) ? 'jQuery' : typeof param; 23 }
53 function typeOf(value) { 54 var t = typeof(value); 55 if (t === 'object') { 56 if (value) { 57 if (value instanceof Array) { 58 t = 'array'; 59 } 60 } 61 else { 62 t = 'null'; 63 } 64 } 65 return t; 66 }
154 function typeOf(value) { 155 var s = typeof value; 156 if (s === 'object') { 157 if (value) { 158 if (typeof value.length === 'number' && 159 !(value.propertyIsEnumerable('length')) && 160 typeof value.splice === 'function') { 161 s = 'array'; 162 } 163 } else { 164 s = 'null'; 165 } 166 } 167 return s; 168 }
144 function typeOf(value) { 145 if (Array.isArray(value)) { 146 return 'array'; 147 } 148 if (value === null) { 149 return 'null'; 150 } 151 return typeof value; 152 }
1 function typeOf(value) { 2 if ($.isArray(value)) { 3 return 'array'; 4 } else if ($.isFunction(value)) { 5 return 'function'; 6 } else if (value === null) { 7 return 'null'; 8 } else { 9 return typeof value; 10 } 11 }
14 function typeOf(val) { 15 switch (toString.call(val)) { 16 case '[object Function]': 17 return 'function'; 18 case '[object Date]': 19 return 'date'; 20 case '[object RegExp]': 21 return 'regexp'; 22 case '[object Arguments]': 23 return 'arguments'; 24 case '[object Array]': 25 return 'array'; 26 case '[object String]': 27 return 'string'; 28 } 29 30 if (typeof val == 'object' && val && typeof val.length == 'number') { 31 try { 32 if (typeof val.callee == 'function') return 'arguments'; 33 } catch (ex) { 34 if (ex instanceof TypeError) { 35 return 'arguments'; 36 } 37 } 38 } 39 40 if (val === null) return 'null'; 41 if (val === undefined) return 'undefined'; 42 if (val && val.nodeType === 1) return 'element'; 43 if (val === Object(val)) return 'object'; 44 45 return typeof val; 46 }