title: Javascript unshift without returning size - React
body: <p>I'm using unshift method from JavaScript inside render() method in a component in React and now the size of array is showing on page. Is there any method in JavaScript to put elements at the beginning without returning the size?</p>
  <pre><code>render() {
  let cells = [];
  code.....
  return (
        &lt;div&gt;
          &lt;Table padding=&quot;dense&quot;&gt;
            &lt;TableHead&gt;
              &lt;TableRow className=&quot;compact&quot; color=&quot;dark&quot;&gt;
               {code...}
               {
                cells.unshift({ style: {}, fieldName: fieldNames.substr(3), extraOptions: {} })
               }
  { 
                cells.map(cell =&gt; {
                  return &lt;TableCell style={cell.style} key={`${cell.fieldName}`} {...cell.extraOptions}&gt;{cell.fieldName}&lt;/TableCell&gt;;
                })
              }
              &lt;/TableRow&gt;
            &lt;/TableHead&gt;
  ....
  </code></pre>