_mercury 🇵🇸_
Reactiflux4y ago
29 replies
_mercury 🇵🇸

✅ – _mercury – 21-51 Aug 29

why parseInt does not work here
    groups.forEach((group) => {
      return Object.keys(group).forEach((key) => {
        if (key === 'attributes_count' || key === 'templates_count') {
          parseInt(group[key]);
        }
        if (!group[key]) {
          delete group[key];
        }
      });
    });
Was this page helpful?