Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let props = {
- Strategy: [
- {
- Test1: [
- {
- Id: 1,
- Goal: "some goal",
- Strategies: [
- {
- Id: 2123,
- License: "pro",
- Title: "Some Goal Title 1,",
- Summary: "Some Summary 1",
- Steps: [
- {
- Description: "Description pro 1",
- Screenshot: "path1"
- },
- {
- Description: "Description pro 2",
- Screenshot: "path2"
- }
- ]
- },
- {
- Id: 1,
- License: "Free",
- Title: "Some Goal Title 2,",
- Summary: "Some Summary 2",
- Steps: [
- {
- Description: "Description Free 5",
- Screenshot: "path1"
- },
- {
- Description: "Description Free 4",
- Screenshot: "path2"
- }
- ]
- }
- ]
- }
- ],
- Test2: [
- {
- Id: 2,
- Goal: "some new goal",
- Strategies: [
- {
- Id: 2125,
- License: "silver",
- Title: "Some Goal Title 3,",
- Summary: "Some Summary 3",
- Steps: [
- {
- Description: "Description silver 1",
- Screenshot: "path1"
- },
- {
- Description: "Description silver 2",
- Screenshot: "path2"
- }
- ]
- },
- {
- Id: 3,
- License: "gold",
- Title: "Some Goal Title 4",
- Summary: "Some Summary 4",
- Steps: [
- {
- Description: "Description gold 5",
- Screenshot: "path1"
- },
- {
- Description: "Description gold 4",
- Screenshot: "path2"
- }
- ]
- }
- ]
- }
- ]
- }
- ]
- } = { Strategy: { Id, Goal }, Strategies: { License, Title, Summary }, Steps: { Description, Screenshot }};
- props = {
- ...props
- };
- const showData = (obj) => {
- console.log(obj)
- };
- showData(props);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement