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

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

@class CollectionContent
@extends ExtensibleData
@param {Object} [json]
Information about the contents of a collection .