tools/kevoree-kevscript/lib/util/model-helper.js
function getPlatforms(tdef) {
	const platforms = [];

	if (tdef) {
		tdef.deployUnits.array.forEach((du) => {
			const platform = du.findFiltersByID('platform');
			if (platform && platforms.indexOf(platform.value) === -1) {
				platforms.push(platform.value);
			}
		});
	}

	return platforms;
}
function getPlatforms(tdef) {
	const platforms = [];

	if (tdef) {
		tdef.deployUnits.array.forEach((du) => {
			const platform = du.findFiltersByID('platform');
			if (platform && platforms.indexOf(platform.value) === -1) {
				platforms.push(platform.value);
			}
		});
	}

	return platforms;
}
function getPlatforms ( tdef ) { const platforms = [ ] ; if ( tdef ) { tdef . deployUnits . array . forEach ( ( du ) => { const platform = du . findFiltersByID ( 'platform' ) ; if ( platform && platforms . indexOf ( platform . value ) === - 1 ) { platforms . push ( platform . value ) ; } } ) ; } return platforms ; }
Returns the platforms related to that TypeDefinition
@param tdef
@returns {Array}
Returns the platforms related to that TypeDefinition