code: function matchesFactory(test) {
    return matches
  
    function matches(node) {
      var key
  
      for (key in test) {
        if (node[key] !== test[key]) {
          return false
        }
      }
  
      return true
    }
  }
docs: Utility assert each property in `test` is represented in `node`, and each values are strictly equal.