#642 Use == null instead == undefined

Closed
opened 8 years ago by nero · 0 comments

Originally at 2013-08-29T12:49:46Z by Herbert Vojčík closed at 2013-09-09T12:43:09Z

== null is used idiom to compare to undefined and null at once and is shorter (and marginally safer, since null is keyword and undefined is potentially redefinable global variable).

At least in ifNil family == undefined is used.

Originally at 2013-08-29T12:49:46Z by Herbert Vojčík closed at 2013-09-09T12:43:09Z `== null` is used idiom to compare to `undefined` and `null` at once and is shorter (and marginally safer, since `null` is keyword and `undefined` is potentially redefinable global variable). At least in `ifNil` family `== undefined` is used.
Sign in to join this conversation.
No Label
No Milestone
No assignee
1 Participants
Loading...
Cancel
Save
There is no content yet.