https://www.npmjs.com/package/shallowequal
function shallowEqual(x, y) {if (x === y) return true;if (typeof x == "object" && x != null && typeof y == "object" && y != null) {if (Object.keys(x).length != Object.keys(y).length) return false;for (var prop in x) {if (y.hasOwnProperty(prop)) {if (x[prop] !== y[prop]) return false;}return false;}return true;}return false;}
