archive/v1/format.js
function formatProp(obj) {
		
		var out      = {};
		var props    = _.get(obj, 'propSet');
		var moRef    = _.has(obj, 'obj') ? util.moRef(obj.obj) : util.moRef(obj);
		out.id       = moRef.id;
		out.type     = moRef.type;

		// loop through the propSet
		if (Array.isArray(props)) {
			_.forEach(props, function(prop) {
				out[prop.name] = formatValue(prop.val);
			});
		}
		else if (_.has(props, 'name')) {
			out[props.name] = formatValue(props.val);
		}

		return out;
	}
function formatProp(obj) {
		
		var out      = {};
		var props    = _.get(obj, 'propSet');
		var moRef    = _.has(obj, 'obj') ? util.moRef(obj.obj) : util.moRef(obj);
		out.id       = moRef.id;
		out.type     = moRef.type;

		// loop through the propSet
		if (Array.isArray(props)) {
			_.forEach(props, function(prop) {
				out[prop.name] = formatValue(prop.val);
			});
		}
		else if (_.has(props, 'name')) {
			out[props.name] = formatValue(props.val);
		}

		return out;
	}
function formatProp ( obj ) { var out = { } ; var props = _ . get ( obj , 'propSet' ) ; var moRef = _ . has ( obj , 'obj' ) ? util . moRef ( obj . obj ) : util . moRef ( obj ) ; out . id = moRef . id ; out . type = moRef . type ; // loop through the propSet if ( Array . isArray ( props ) ) { _ . forEach ( props , function ( prop ) { out [ prop . name ] = formatValue ( prop . val ) ; } ) ; } else if ( _ . has ( props , 'name' ) ) { out [ props . name ] = formatValue ( props . val ) ; } return out ; }
format each object
format each object