function findId( object ){
	    if ( !object ) {
	      return undefined;
	    } else if ( typeof object === "string" ) {
	      return object;
	    } else if ( "id" in object ) {
	      return object.id();
	    } else {
	      console.warn("No Id was found for this object: " + object);
	      return undefined;
	    }
	  }
/**
	   * Looks whether the passed object is already the id or if it was replaced
	   * with the object that belongs to the id.
	   * @param object an id, a class or a property
	   * @returns {string} the id of the passed object or undefined
	   */
Looks whether the passed object is already the id or if it was replaced
with the object that belongs to the id.
@param object an id, a class or a property
@returns {string} the id of the passed object or undefined
Looks whether the passed object is already the id or if it was replaced with the object that belongs to the id . @param object an id a class or a property @returns { string } the id of the passed object or undefined
function findId( object ){
	    if ( !object ) {
	      return undefined;
	    } else if ( typeof object === "string" ) {
	      return object;
	    } else if ( "id" in object ) {
	      return object.id();
	    } else {
	      console.warn("No Id was found for this object: " + object);
	      return undefined;
	    }
	  }
function findId ( object ) { if ( ! object ) { return undefined ; } else if ( typeof object === "string" ) { return object ; } else if ( "id" in object ) { return object . id ( ) ; } else { console . warn ( "No Id was found for this object: " + object ) ; return undefined ; } }
Looks whether the passed object is already the id or if it was replaced
 with the object that belongs to the id.
Looks whether the passed object is already the id or if it was replaced with the object that belongs to the id .