code: function shallowEqual(actual, expected) {
    var keys = Object.keys(expected);
  
    var _arr2 = keys;
    for (var _i2 = 0; _i2 < _arr2.length; _i2++) {
      var key = _arr2[_i2];
      if (actual[key] !== expected[key]) {
        return false;
      }
    }
  
    return true;
  }
docs: Test if an object is shallowly equal.