Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.
2 of 2
@Matti suggestion
insign
  • 5.9k
  • 1
  • 44
  • 35
function isObjectLike(value) {
  return value != null && typeof value == 'object' && !Array.isArray(value);
}

Based from lodash

insign
  • 5.9k
  • 1
  • 44
  • 35