export.js
//Check if object of given type and with given id exists in the metadata export
Check if object of given type and with given id exists in the metadata export
Check if object of given type and with given id exists in the metadata export
function objectExists(type, id) {
	if (!metaData.hasOwnProperty(type)) return false;
	for (var obj of metaData[type]) {
		if (obj && obj.hasOwnProperty("id") && obj.id === id) return true;
	}
	return false;
}
function objectExists ( type , id ) { if ( ! metaData . hasOwnProperty ( type ) ) return false ; for ( var obj of metaData [ type ] ) { if ( obj && obj . hasOwnProperty ( "id" ) && obj . id === id ) return true ; } return false ; }
Check if object of given type and with given id exists in the metadata export
Check if object of given type and with given id exists in the metadata export