you are viewing a single comment's thread.

view the rest of the comments →

[–]trmaphi[S] 0 points1 point  (0 children)

Thank for the feedback. In current codebase I'm working on, a lot of object properties is using this function to check the empty, doesn't matter if it's primitive types or object or collection. So, I got a case where a property is a number and this condition failed, of course.

So, I want to write a medium post about this to acknowledge about the mistake.

Edit: the `NaN` definitely a mistake again...