constlikes=([a,b,c,...xs]:string[]):string=>a===undefined?"No one likes this.":b===undefined?`${a} likes this.`:c===undefined?`${a} and ${b} like this.`:xs.length===0?`${a}, ${b} and ${c} like this.`:`${a}, ${b} and ${[c,...xs].length} others like this.`;
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
TypeScript