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.
6 events
when toggle format what by license comment
Nov 25, 2019 at 14:53 history edited Gust van de Wal CC BY-SA 4.0
Added a shorter option
Nov 7, 2019 at 16:40 history edited sasi CC BY-SA 4.0
deleted 36 characters in body
Nov 6, 2019 at 0:02 comment added Gust van de Wal You can also remove the null check, because Object.prototype.toString.call(null) === '[object Null]'
Jun 13, 2018 at 11:19 history edited sasi CC BY-SA 4.0
Fixed unnecessary explicit return value.
Jun 10, 2018 at 4:19 comment added mesqueeb this is the best way but I would make it even easier by on the 2nd line: return Object.prototype.toString.call(n) === '[object Object]'
Apr 16, 2018 at 14:22 history answered sasi CC BY-SA 3.0