Friday #jsriddle: Detect if a value is a plain object, i.e. not an instance of anything else.
So it would return true for {} or new Object() or JSON.parse("{}"), but not new MyFoo()
Will RT best solutions, will post mine later if it adds anything .
-
-
Yes, that should return true, it doesn't matter what properties it has.
-
But I like the way you think :)
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.