const emojies= [
[/:smile:/g, '😂'],
[/:like:/g, '😎'],
];
const emojiReplace = (text) => {
let result = text;
for (let i = 0; i < emojies.length; i += 1) {
result = result.replace(emojies[i][0], emojies[i][1]);
}
return result;
}
console.log(emojiReplace(':smile::smile::smile::like:'));
// 😂😂😂😎