code: function deepObjectCheck (actual, expected) {
    if (expected && actual && (expected.length != actual.length)
      || typeof actual != typeof expected) {
      return false;
    }
  
    for (var key in expected) {
      var actualType = typeof(actual[key]),
          expectedType = typeof(expected[key]);
    
      if (actualType != expectedType) {
        return false;
      }
      
      if (actualType == "function") {
        continue;
      } 
      else if (actualType == "object") {
        if (!deepObjectCheck(expected[key], actual[key])) {
          return false;
        }
      } 
      else if (actual[key] !== expected[key]) {
        return false;
      }
    }
   
    return true;
  }
docs: ### @private function deepObjectCheck (actual, expected) #### @actual {Object} Actual subtree to assert #### @expected {Object} Expected subtree to assert against Performs a custom deep inspection of the `actual` Object against the `expected` Object, returning a value indicating if the two match.