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 =
With a type check on array
const hasObject = a => Array.isArray(a) && a.some(val => typeof val === 'object')