let show_debug = 0 /** * faire un log * @param message */ function debugLog (message) { if (!show_debug) { return } console.log('debug: ', ...message) } let listOfBooleanKeys = Object.keys({ prise_type_ef: 'socket:typee', prise_type_2: 'socket:type2', prise_type_combo_ccs: 'socket:type2_combo', prise_type_chademo: 'socket:chademo', gratuit: 'fee', paiement_acte: 'authentication:none', paiement_cb: 'payment:credit_cards', cable_t2_attache: 'socket:type2_cable', }) /** * * @param pointKeyName * @returns {boolean} */ function isBooleanKey(pointKeyName) { return listOfBooleanKeys.indexOf(pointKeyName) !== -1 } export default { debugLog, isBooleanKey }