index.js
function matchesFactory(test) {
  return matches

  function matches(node) {
    var key

    for (key in test) {
      if (node[key] !== test[key]) {
        return false
      }
    }

    return true
  }
}
function matchesFactory(test) {
  return matches

  function matches(node) {
    var key

    for (key in test) {
      if (node[key] !== test[key]) {
        return false
      }
    }

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