Replace some instances of undefined with null #86

Closed
opened 2020-08-13 10:54:25 +02:00 by FWDekker · 1 comment
Owner

Because I prefer avoiding the use of undefined where possible.

Because I prefer avoiding the use of `undefined` where possible.
Author
Owner

I have replaced undefined with null only where I thought it was suitable. My criterion was that I should use null instead of undefined where I expect the invoker of a function to possibly give an explicit null; in this case undefined would not be an appropriate value, imo. In cases where a variable has not been initialised yet, I have retained the usage of undefined.

I have replaced `undefined` with `null` only where I thought it was suitable. My criterion was that I should use `null` instead of `undefined` where I expect the invoker of a function to possibly give an explicit `null`; in this case `undefined` would not be an appropriate value, imo. In cases where a variable has not been initialised yet, I have retained the usage of `undefined`.
FWDekker self-assigned this 2020-08-13 13:24:03 +02:00
Sign in to join this conversation.
No Label
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: tools/minesweeper#86
No description provided.