whole_func_string: function templateMatches(template, obj) {
    for (var key in template) {
      if (template.hasOwnProperty(key) && obj[key] !== template[key]) {
        return false;
      }
    }
    return true;
  }
func_code_string: function templateMatches(template, obj) {
    for (var key in template) {
      if (template.hasOwnProperty(key) && obj[key] !== template[key]) {
        return false;
      }
    }
    return true;
  }
func_documentation_string: return true if all corresponding object properties match