JSFiddle - React, Tailwind, and code Playground

by bhupendra negi

JavaScript

var obj1 = {
  "XL": [
    {
      "description": "Fine and exceptional strap in genuine dark brown alligator leather by Santoni",
      "imagePath": "/content/dam/rcq/iwc/10/26/34/7/1026347.png",
      "localRef": "IWA54595",
      "globalRef": "IWIWA54595",
      "sizeCode": "XL",
      "material": "ALLIGATORMISSISSIPPIENSIS",
      "watchWithStrapImagePath": ""
    },
    {
      "description": "Fine and exceptional strap in genuine black alligator leather by Santoni",
      "imagePath": "/content/dam/rcq/iwc/10/26/33/7/1026337.png",
      "localRef": "IWA54596",
      "globalRef": "IWIWA54596",
      "sizeCode": "XL",
      "material": "ALLIGATORMISSISSIPPIENSIS",
      "watchWithStrapImagePath": ""
    }
  ],
  "STANDARD": [
    {
      "description": "Fine and exceptional strap in genuine dark brown alligator leather by Santoni",
      "imagePath": "/content/dam/rcq/iwc/62/91/38/629138.jpeg",
      "localRef": "IWA54579",
      "globalRef": "IWIWA54579",
      "sizeCode": "STANDARD",
      "material": "ALLIGATORMISSISSIPPIENSIS",
      "watchWithStrapImagePath": ""
    },
    {
      "description": "Fine and exceptional strap in genuine dark brown alligator leather by Santoni",
      "imagePath": "/content/dam/rcq/iwc/62/91/38/629138.jpeg",
      "localRef": "IWA54579",
      "globalRef": "IWIWA54579",
      "sizeCode": "STANDARD",
      "material": "ALLIGATORMISSISSIPPIENSIS",
      "watchWithStrapImagePath": ""
    }
  ]
}

var obj2 = {
  "IWIWA54579": {
    "articleType": "single",
    "sellable": true,
    "stock": true,
    "formattedPrice": "$400",
    "price": "400.0",
    "tax": false
  },
  "IWIWA54595": {
    "articleType": "single",
    "sellable": true,
    "stock": true,
    "formattedPrice": "$400",
    "price": "400.0",
    "tax": false
  },
  "IWIWA54596": {
    "articleType": "single",
    "sellable": 'false',
    "stock": false,
    "formattedPrice": "$400",
    "price": "400.0",
    "tax": false
  }
}







for( let prop in obj1) {
  let...