I would suggest, based on @Martin's answer:
// tests whether value is an object with curly braces
// (Arrays are objects too, but we don't want to include them)
const isAnObjectObject = (value) => {
return value.toString() === "[object Object]" && value !== "[object Object]"
}