JavaScript
Reassign array values

by Benny Neugebauer

let conversations = getConversationIds();
if (conversations.length === 0) {
  conversations = [message.chatId];
}

let conversations = getConversationIds();
if (conversations.length === 0) {
  conversations = conversations.concat([message.chatId]);
}