JSFiddle - React, Tailwind, and code Playground

by Cristofer Sousa

JavaScript

const data = [];

const p2p_rules = [
  {
    "id": "15",
    "platform": "SMSx",
    "origination": "VERIZON",
    "destination": "CAROL",
    "feature_profile_name": "feature-profile-test1",
    "priority": "91",
    "modification_details": {
      "ulid": "01H5W9WE02H9PF12JS7NQG6Z34",
      "created_by": "Fake Superuser <[email protected]>",
      "created_at": "2023-07-21T13:23:02Z",
      "updated_by": "Fake Superuser <[email protected]>",
      "updated_at": "2023-07-21T13:23:02Z"
    }
  },
  {
    "id": "13",
    "platform": "SMSx",
    "origin_prefix": "1",
    "origin_country_code": "US",
    "origination": "VERIZON",
    "destination_prefix": "1",
    "destination_country_code": "US",
    "destination": "TMOBILE",
    "feature_profile_name": "feature-profile-test2",
    "cluster_profile_name": "cluster-br-test",
    "quota_profile_name": "quota-test-br1",
    "priority": "64",
    "modification_details": {
      "ulid": "01H41766WVTDXP4BBRVD88BJYY",
      "created_by": "Fake Superuser <[email protected]>",
      "created_at": "2023-06-28T14:40:45Z",
      "updated_by": "Fake Superuser <[email protected]>",
      "updated_at": "2023-06-28T14:40:45Z"
    }
  }
];
const newP2pRulesData = [...data, ...p2p_rules];
console.log(newP2pRulesData)