Re:Tricks I wish I knew when I learned TypeScript
by nicoburns on Tuesday October 12, 2021 @06:10AM
(#28838021)
If you want to avoid a library then you can do `typeof x === "object" && !Array.isArray(x) && x !== null`. Not ideal, but you can of course turn it into a utility function.
[ Parent
| on HN ]
There are no comments on this comment yet.