Today I was going through Client API from Microsoft Docs and found getInitialValue reference. I haven’t used it anytime and explored little bit.
Here is the syntax for the same.
1) This method works for only Boolean, OptionSet or MultiSelectOptionSet attributes.
2) Once the record is saved, getInitialValue holds the latest value whatever that was changed by the user.
Hope this helps.