import isEqual from 'lodash.isequal';

function hasChanged(newValue, previousValue) {
  return isEqual(newValue, previousValue);
}

export default hasChanged;

import isEqual from 'lodash.isequal';

function hasChanged(newValue, previousValue) {
  return !isEqual(newValue, previousValue);
}

export default hasChanged;

Fix reversed logic in hasChanged (#92)