function isTemplateObjectEqual(obj1, obj2) {
  if (obj1 && obj2) {
    var obj1Properties = Object.getOwnPropertyNames(obj1);
    var obj2Properties = Object.getOwnPropertyNames(obj2); // If number of properties is different, objects are not equivalent

    if (obj1Properties.length !== obj2Properties.length) {
      return false;
    }

    if (obj1.id !== obj2.id || obj1.url !== obj2.url) {
      return false;
    }

    return true;
  }

  return false;
} // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/encodeURIComponent
/**
 * Returns a boolean after comparing two Template objects.
 *   true - if the objects are equivalent, false otherwise
 *
 * @param {Object} obj1
 * @param {Object} obj2
 */
Returns a boolean after comparing two Template objects.
true - if the objects are equivalent, false otherwise

@param {Object} obj1
@param {Object} obj2
Returns a boolean after comparing two Template objects . true - if the objects are equivalent false otherwise @param { Object } obj1 @param { Object } obj2
function isTemplateObjectEqual(obj1, obj2) {
  if (obj1 && obj2) {
    var obj1Properties = Object.getOwnPropertyNames(obj1);
    var obj2Properties = Object.getOwnPropertyNames(obj2); 
    if (obj1Properties.length !== obj2Properties.length) {
      return false;
    }
    if (obj1.id !== obj2.id || obj1.url !== obj2.url) {
      return false;
    }
    return true;
  }
  return false;
} 
function isTemplateObjectEqual ( obj1 , obj2 ) { if ( obj1 && obj2 ) { var obj1Properties = Object . getOwnPropertyNames ( obj1 ) ; var obj2Properties = Object . getOwnPropertyNames ( obj2 ) ; if ( obj1Properties . length !== obj2Properties . length ) { return false ; } if ( obj1 . id !== obj2 . id || obj1 . url !== obj2 . url ) { return false ; } return true ; } return false ; }
Returns a boolean after comparing two Template objects.
Returns a boolean after comparing two Template objects .
// If number of properties is different, objects are not equivalent // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/encodeURIComponent