title: Uncaught TypeError: {(intermediate value)}.map is not a function
body: <p>here is my code:</p>
  
  <pre><code>function employee(rex1){
      const rex = {...rex1}.map((key , value)=&gt;{
          return `${key} : ${value}`
  
  
      })
      return `your result is ${rex.join(',')}`
  }
  console.log(employee({name : 'ahmed' , age : 20})
  </code></pre>
  
  <p>and it get error as below:</p>
  
  <blockquote>
    <p>Uncaught TypeError: {(intermediate value)}.map is not a function</p>
  </blockquote>