News for hackers. Stuff that matters.
Re:4B If Statements by mbb70 on Thursday December 28, 2023 @10:34AM (#38794403)
Another classic from jon is the venerable https://www.npmjs.com/package/isobject coming in at 30,000,000 weekly downloads for

`function(val) { return val != null && typeof val === 'object' && Array.isArray(val) === false; }`

But honestly, having seen "TypeError: Cannot read properties of null" enough times, I give it a pass.

https://npm-stat.com/charts.html?author=jonschlinkert paints a pretty crazy picture

There are no comments on this comment yet.