title: cannot update an array of elements via a 2d iteration
body: <p>I have two arrays of object, the first array (printerChart, around 80 elements) is made of the following type of objects:</p>
  
  <pre><code>[{
      printerBrand: 'Mutoh',
      printerModel: 'VJ 1204G',
      headsBrand: 'Epson',
      headType: '',
      compatibilty: [
        'EDX',
        'DT8',
        'DT8-Pro',
        'ECH',
      ],
    },
     ....
  ]
  </code></pre>
  
  <p>The second array (items, around 500 elements) is made of the following type of objects:</p>
  
  <pre><code>[
          {
              "customData": {
                  "brand": {
                      "value": {
                          "type": "string",
                          "content": "hp"
                      },
                      "key": "brand"
                  },
                  "printer": {
                      "value": {
                          "type": "string",
                          "content": "c4280"
                      },
                      "key": "printer"
                  }
              },
              "name": "DT8 XLXL",
              "image": {
                  "id": "zLaDHrgbarhFSnXAK",
                  "url": "https://xxxxxxx.net/images/xxxxxx.jpg"
              },
              "brandId": "xxxxx",
              "companyId": "xxxx",
              "createdAt": "2018-03-26T14:39:47.326Z",
              "updatedAt": "2018-04-09T14:31:38.169Z",
              "points": 60,
              "id": "dq2Zezwm4nHr8FhEN"
          },
    ...
  ]
  </code></pre>
  
  <p>What I want to do is to iterate via the second array and, if the part of the name of an item (i.e. DT8) is included in an element of the array 'compatibility' of the first array, I would like to include a new properties to it from the element of the first array: printerBrand. I have tried but somehow the iteration doesn't take place correctly. This is what I tried:</p>
  
  <pre><code>items.forEach((item) =&gt; {
        printerChart.forEach((printer) =&gt; {
          if (printer.compatibilty.some(compatibleElem =&gt; (
            item.name.includes(compatibleElem)))) {
            item.printerBrand = printer.printerBrand;
          } else {
            item.printerBrand = '';
          }
        });
      });
  </code></pre>
  
  <p>What am I doing wrong?</p>