Utility module to compare old and new data to see if there are any changes. Uses Diff library
Methods
(static) hasDataChanged(oldData, newData) → {boolean}
Compares old and new data using Diff library. Performs a simple check to see if any data has changed
Parameters:
Name | Type | Description |
---|---|---|
oldData |
Object | data to be compared |
newData |
Object | data to be compared |
Returns:
true if data has changed, false otherwise
- Type
- boolean