code: function( array, id, recurse ) {
  			for ( var i = 0, item;
  			( item = array[ i ] ); i++ ) {
  				if ( item.id == id )
  					return item;
  				if ( recurse && item[ recurse ] ) {
  					var retval = getById( item[ recurse ], id, recurse );
  					if ( retval )
  						return retval;
  				}
  			}
  			return null;
  		}
docs: Tool function used to return an item from an array based on its id property.