src/utils/console-message.js
function logMessage(messageType, message) {
  if (Object.values(messageTypes).includes(messageType)) {
    console[messageType](message)
  } else {
    console.info(message)
  }
}
function logMessage(messageType, message) {
  if (Object.values(messageTypes).includes(messageType)) {
    console[messageType](message)
  } else {
    console.info(message)
  }
}
function logMessage ( messageType , message ) { if ( Object . values ( messageTypes ) . includes ( messageType ) ) { console [ messageType ] ( message ) } else { console . info ( message ) } }
Logs a custom message to console
@param {messageTypes} messageType One of: error, warn or info
@param {String} message
Logs a custom message to console