I want to check if array contains object or not. I am not trying to compare values just want to check in my array if object is present or not?
Ex.
$arr =
I want to check if array contains object or not
Use some to simply check if any item of the array has value of type "object"
var hasObject = $arr.some( function(val){ return typeof val == "object"; });