would anyone be able to advise what does word in word && '' does in example from the link below. I don't quite understand why && operator, a conditional operator is doing inside it.
I have enclosed the code extract below.
{text.split(' ').map((word) => word && '').join(' ')}
When i remove word, so that it become the following:
{text.split(' ').map((word) =>  '').join(' ')}
I could observe one pizza there before any text is type.
 
     
     
    