restructured
This commit is contained in:
@@ -1,10 +1,10 @@
|
|||||||
let myList = [{
|
let myList = [{
|
||||||
"name": "Learn JavaScript",
|
"name": "Learn JavaScript",
|
||||||
"status": true
|
"status": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Try JSON",
|
"name": "Try JSON",
|
||||||
"status": false
|
"status": false
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
@@ -12,4 +12,4 @@ const newStr = JSON.stringify(myList);
|
|||||||
const newObj = JSON.parse(newStr);
|
const newObj = JSON.parse(newStr);
|
||||||
newObj.forEach((el)=>{
|
newObj.forEach((el)=>{
|
||||||
console.log(el);
|
console.log(el);
|
||||||
})
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user