The plus converts a string to a float. The code you provided is equivalent to the following:
if ( obj.length === Number(obj.length) ) { // ... }
2.1m questions
2.1m answers
60 comments
57.0k users