src/records/Collection.js
function(json){
    
    // Protect against forgetting the new keyword when calling the constructor
    if(!(this instanceof Collection)){
      return new Collection(json);
    }
    
    // If the given object is already an instance then just return it. DON'T copy it.
    if(Collection.isInstance(json)){
      return json;
    }
    
    this.init(json);
  }
function(json){
    
    // Protect against forgetting the new keyword when calling the constructor
    if(!(this instanceof Collection)){
      return new Collection(json);
    }
    
    // If the given object is already an instance then just return it. DON'T copy it.
    if(Collection.isInstance(json)){
      return json;
    }
    
    this.init(json);
  }
function ( json ) { // Protect against forgetting the new keyword when calling the constructor if ( ! ( this instanceof Collection ) ) { return new Collection ( json ) ; } // If the given object is already an instance then just return it. DON'T copy it. if ( Collection . isInstance ( json ) ) { return json ; } this . init ( json ) ; }
A collection of genealogical data.

@see {@link https://github.com/FamilySearch/gedcomx-record/blob/master/specifications/record-specification.md#collection|GEDCOM X Records Spec}

@class Collection
@extends ExtensibleData
@param {Object} [json]
A collection of genealogical data .