Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / core / modules / field_ui / field_ui.es6.js
index e8f9f9aba5296221defa2306dbe74f0e1715bd0a..965a2e4c36b07f461140244656588e4f6971847e 100644 (file)
       // Separate keys and values.
       const rowNames = [];
       const ajaxElements = [];
-      let rowName;
-      for (rowName in rows) {
-        if (rows.hasOwnProperty(rowName)) {
-          rowNames.push(rowName);
-          ajaxElements.push(rows[rowName]);
-        }
-      }
+      Object.keys(rows || {}).forEach((rowName) => {
+        rowNames.push(rowName);
+        ajaxElements.push(rows[rowName]);
+      });
 
       if (rowNames.length) {
         // Add a throbber next each of the ajaxElements.