79427434

Date: 2025-02-10 14:50:32
Score: 1.5
Natty:
Report link

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]"
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Martin's
  • Low reputation (0.5):
Posted by: Francis