text: import { NotImplementedError } from '../extensions/index.js';
  
  /**
   * Create name of dream team based on the names of its members
   *  
   * @param {Array} members names of the members 
   * @return {String | Boolean} name of the team or false
   * in case of incorrect members
   *
   * @example
   * 
   * createDreamTeam(['Matt', 'Ann', 'Dmitry', 'Max']) => 'ADMM'
   * createDreamTeam(['Olivia', 1111, 'Lily', 'Oscar', true, null]) => 'LOO'
   *
   */
  export default function createDreamTeam(/* members */ar) {
    // throw new NotImplementedError('Not implemented');
    // remove line with error and write your code here
    let team=[];
    if (  Array.isArray(ar)) { 
      ar.forEach(element => {
         
        if ( typeof( element ) === 'string') {
          element = element.trim()
          team .push( element[0].toUpperCase() )
        }
      });
    }
    return team.sort().join('')
  }
  