function addFile(file) {
  if (this.files === undefined)
    this.files = [];

  this.files.push(file);
}
/**
 * Simple helper method to initialize files array for a Thing object if it does
 * not exist already, and then add a file.
 *
 * @param {File} file
 *  File object to add
 * @memberof Thing
 * @instance
 */
Simple helper method to initialize files array for a Thing object if it does
not exist already, and then add a file.

@param {File} file
File object to add
@memberof Thing
@instance
Simple helper method to initialize files array for a Thing object if it does not exist already and then add a file . @param { File } file File object to add @memberof Thing @instance
function addFile(file) {
  if (this.files === undefined)
    this.files = [];
  this.files.push(file);
}
function addFile ( file ) { if ( this . files === undefined ) this . files = [ ] ; this . files . push ( file ) ; }
Simple helper method to initialize files array for a Thing object if it does
 not exist already, and then add a file.
Simple helper method to initialize files array for a Thing object if it does not exist already and then add a file .