use lodash's isEqual method for object comparison