Feels wrong to merge null and undefined values. undefined is smth that doesn't exist, null on the other hand is smth that exists, but doesn't have value.
This makes write(identifier, undefined) same as write(identifier, null). Latter is definitely user wanting to null the value. First doesn't make sense to call deliberately, rather a handy filter for undefined values - if undefined is passed then do nothing.
|
if (proposedValue === undefined) proposedValue = null |
Feels wrong to merge
nullandundefinedvalues.undefinedis smth that doesn't exist,nullon the other hand is smth that exists, but doesn't have value.This makes
write(identifier, undefined)same aswrite(identifier, null). Latter is definitely user wanting to null the value. First doesn't make sense to call deliberately, rather a handy filter for undefined values - if undefined is passed then do nothing.chronograph/src/chrono/Transaction.ts
Line 455 in 0db8d13