title: how to pass array in grpc call using reactjs
body: <p>I want to send an array of objects into grpc call with reactjs using the "grpc-web-client" module. but it is giving me an error while sending an array of objects. 
  Following is the error:</p>
  
  <pre><code>TypeError: n.toArray is not a function
  </code></pre>
  
  <p>I don't understand why it is not sending this. and following is my structure of an array of objects which I want to send:</p>
  
  <pre><code>let events = [{
    title:"event title"
  }];
  </code></pre>
  
  <p>and in .proto file it is defined as follow:</p>
  
  <pre><code>message EventProfile {
  repeated Events events = 2;
  }
  
  message EventSlots {
  string title = 1;
  }
  </code></pre>
  
  <p>Please, someone, help me to solve this problem.</p>