mobility-toolbox-js
Version:
Toolbox for JavaScript applications in the domains of mobility and logistics.
9 lines (8 loc) • 303 B
JavaScript
/**
* Get the websocket channel suffix, depending on the current mode.
* @param {String} mode Mode 'topographic' ou 'schematic'.
* @param {String[]} modes List of modes
* @private
*/
const getModeSuffix = (mode, modes) => mode === modes.SCHEMATIC ? '_schematic' : '';
export default getModeSuffix;