Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. let props = {
  2.         Strategy: [
  3.             {
  4.                 Test1: [
  5.                     {
  6.                         Id: 1,
  7.                         Goal: "some goal",
  8.                         Strategies: [
  9.                             {
  10.                                 Id: 2123,
  11.                                 License: "pro",
  12.                                 Title: "Some Goal Title 1,",
  13.                                 Summary: "Some Summary 1",
  14.                                 Steps: [
  15.                                     {
  16.                                         Description: "Description pro 1",
  17.                                         Screenshot: "path1"
  18.                                     },
  19.                                     {
  20.                                         Description: "Description pro 2",
  21.                                         Screenshot: "path2"
  22.                                     }
  23.                                 ]
  24.                             },
  25.                             {
  26.                                 Id: 1,
  27.                                 License: "Free",
  28.                                 Title: "Some Goal Title 2,",
  29.                                 Summary: "Some Summary 2",
  30.                                 Steps: [
  31.                                     {
  32.                                         Description: "Description Free 5",
  33.                                         Screenshot: "path1"
  34.                                     },
  35.                                     {
  36.                                         Description: "Description Free 4",
  37.                                         Screenshot: "path2"
  38.                                     }
  39.                                 ]
  40.                             }
  41.                         ]
  42.                     }
  43.                 ],
  44.  
  45.                Test2: [
  46.                     {
  47.                         Id: 2,
  48.                         Goal: "some new goal",
  49.                         Strategies: [
  50.                             {
  51.                                 Id: 2125,
  52.                                 License: "silver",
  53.                                 Title: "Some Goal Title 3,",
  54.                                 Summary: "Some Summary 3",
  55.                                 Steps: [
  56.                                     {
  57.                                         Description: "Description silver 1",
  58.                                         Screenshot: "path1"
  59.                                     },
  60.                                     {
  61.                                         Description: "Description silver 2",
  62.                                         Screenshot: "path2"
  63.                                     }
  64.                                 ]
  65.                             },
  66.                             {
  67.                                 Id: 3,
  68.                                 License: "gold",
  69.                                 Title: "Some Goal Title 4",
  70.                                 Summary: "Some Summary 4",
  71.                                 Steps: [
  72.                                     {
  73.                                         Description: "Description gold 5",
  74.                                         Screenshot: "path1"
  75.                                     },
  76.                                     {
  77.                                         Description: "Description gold 4",
  78.                                         Screenshot: "path2"
  79.                                     }
  80.                                 ]
  81.                             }
  82.                         ]
  83.                     }
  84.                 ]
  85.             }
  86.         ]
  87.     } = { Strategy: { Id, Goal }, Strategies: { License, Title, Summary }, Steps: { Description, Screenshot }};
  88.     props = {
  89.       ...props
  90.     };
  91.     const showData = (obj) => {
  92.  
  93.         console.log(obj)
  94.     };
  95.    
  96.     showData(props);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement