MENU
Boolean Values
$.contains(Element container, Element contained)<br>Check to see if an element is a descendant of another element.<br>$.inArray(Any value, Array arr[, int fromIndex])<br>Return the index of a value within an array, or -1 if it cannot be found.<br>$.isEmptyObject(Object o)$.isNumeric(Object o)$.isXMLDoc(Object o)<br>Determine if an object is a specific type.
RESETRUNFULL
RESETRUNFULL
<!DOCTYPE html><html><head>
<script src="jquery-3.5.1.min.js"></script></head><body>
<p></p>
<script>
alert($.contains(document,$('p')[0])); // true
alert($.contains(5, [1,5,10,3], 2)); //false
alert($.isArray({a:10})); // false
alert($.isEmptyObject({f:function(){}})); // false
alert($.isFunction(alert)); // true
alert($.isPlainObject({a:10})); // true
alert($.isPlainObject(window)); // false
alert($.isWindow(window)); // true
alert($.isXMLDoc(window)); // false
</script></body></html>