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'
   *
   */
  
  
  // throw new NotImplementedError('Not implemented');
    // remove line with error and write your code here
  
  export default function createDreamTeam(members) {
  
  
    let type='string'
    // let copy=members.slice();
    let arr=[]
  
    for (let i=0; i<members.length; i++){
      if (typeof members[i]===type ){
      arr.push(members[i])
      };
      
  }
  
  
  let arr1=[]
  
  for (let i=0; i<arr.length; i++){
    arr1[i]=arr[i].trim();
    arr1[i]=arr1[i].toUpperCase();
    }
  
  let rez=arr1.sort();
  
  let k=[]
  for (let i=0; i<rez.length; i++){
  k[i]=rez[i].charAt(0).toUpperCase();
  }
  
  
  console.log(arr,rez,k.join(''));
  return (k.join(''));
  }
  