title: Expected to return a value at the end of this function array-callback-return in React JS
body: <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>render() {
  
          const rowLeft = [];
          const rowRight = [];
          let a = this.props.ntn;
          
  
         Object.keys(this.props.ntn).map((keyName, keyIndex) =&gt;{
  
          if (keyName === "_id" || keyName === "name" || keyName === "description" || keyName === "instant" || keyName === "active") {
                    if (keyName === "beacon" || keyName === "group") {
  
              return rowLeft.push(&lt;InfoRow notification={keyName} notificationValue={a[keyName].name.toString()} key={keyIndex}/&gt;)
            } 
  
          else if (a[keyName].offers) {
  
              return rowLeft.push(&lt;InfoRow notification={keyName} notificationValue={a[keyName].offers.toString()} key={keyIndex}/&gt;)
            }
  
            else {
  
              return rowLeft.push(&lt;InfoRow notification={keyName} notificationValue={a[keyName].toString()} key={keyIndex}/&gt;)
           }}
         
         });
  
         Object.keys(this.props.ntn).map((keyName, keyIndex) =&gt;{
  
          if (keyName === "levelType" || keyName === "triggeringEvents" || keyName === "type" || keyName === "beacon" || keyName === "inbox") {
                    if (keyName === "beacon" || keyName === "group") {
  
              return rowRight.push(&lt;InfoRow notification={keyName} notificationValue={a[keyName].name.toString()} key={keyIndex}/&gt;)
            } 
  
          else if (a[keyName].offers) {
  
              return rowRight.push(&lt;InfoRow notification={keyName} notificationValue={a[keyName].offers.toString()} key={keyIndex}/&gt;)
            }
  
            else {
  
              return rowRight.push(&lt;InfoRow notification={keyName} notificationValue={a[keyName].toString()} key={keyIndex}/&gt;)
           }}
         
         });
  
          return (</code></pre>
  </div>
  </div>
  </p>
  
  <p>i did something like this
  actually I'm fetching values and showing all the details on the page
  what the thing is now I'm getting this warning
  "Expected to return a value at the end of this function  array-callback-return in React JS"
  Any solution? How to deal with it?</p>