function showSecret(secrets) {
    if (typeof secrets !== 'string' || secrets === '')
        return <p>No messages visible</p>;
    else {
        return (
            <ul>
                {secrets.split('|').map((secretMessage) => (
                    <li>{secretMessage}</li>
                ))}
            </ul>
        );
    }
}
/**
 * This function renders secret messages generated by the program
 * @param  {String} secrets A list of messages visible to logged in user
 * @return {Html}           A html unordered list view of {secrets}
 */
This function renders secret messages generated by the program
@param  {String} secrets A list of messages visible to logged in user
@return {Html}           A html unordered list view of {secrets}
This function renders secret messages generated by the program @param { String } secrets A list of messages visible to logged in user @return { Html } A html unordered list view of { secrets }
function showSecret(secrets) {
    if (typeof secrets !== 'string' || secrets === '')
        return <p>No messages visible</p>;
    else {
        return (
            <ul>
                {secrets.split('|').map((secretMessage) => (
                    <li>{secretMessage}</li>
                ))}
            </ul>
        );
    }
}
function showSecret ( secrets ) { if ( typeof secrets !== 'string' || secrets === '' ) return < p > No messages visible < / p > ; else { return ( < ul > { secrets . split ( '|' ) . map ( ( secretMessage ) => ( < li > { secretMessage } < / li > ) ) } < / ul > ) ; } }
This function renders secret messages generated by the program
 @param  {String} secrets A list of messages visible to logged in user
 @return {Html}           A html unordered list view of {secrets}
This function renders secret messages generated by the program @param { String } secrets A list of messages visible to logged in user @return { Html } A html unordered list view of { secrets }