| Undefined and null should be treated differently. null: the value exists but is not set. undefined: the value does not exist. JSON.stringify on an undefined property removes that property. JSON.stringify on null keeps that property as null. A codebase that does not distinguish between null and undefined is a less flexible codebase. |
At the end of the day it would have been much nicer for there to only have been one nothing type but what’s done is done.