src/core/Fact.js
function(json){
  
  // Protect against forgetting the new keyword when calling the constructor
  if(!(this instanceof Fact)){
    return new Fact(json);
  }
  
  // If the given object is already an instance then just return it. DON'T copy it.
  if(Fact.isInstance(json)){
    return json;
  }
  
  this.init(json);
}
function(json){
  
  // Protect against forgetting the new keyword when calling the constructor
  if(!(this instanceof Fact)){
    return new Fact(json);
  }
  
  // If the given object is already an instance then just return it. DON'T copy it.
  if(Fact.isInstance(json)){
    return json;
  }
  
  this.init(json);
}
function ( json ) { // Protect against forgetting the new keyword when calling the constructor if ( ! ( this instanceof Fact ) ) { return new Fact ( json ) ; } // If the given object is already an instance then just return it. DON'T copy it. if ( Fact . isInstance ( json ) ) { return json ; } this . init ( json ) ; }
A fact for a person or relationship.

@see {@link https://github.com/FamilySearch/gedcomx/blob/master/specifications/json-format-specification.md#fact-conclusion|GEDCOM X JSON Spec}

@class
@extends Conclusion
@param {Object} [json]
A fact for a person or relationship .