I need some dummy data that I can use. I usually, manually create my data in a variable like...
const jsonData = [
{
name: 'random',
age: '0',
}
];
I'm trying to create a function that gives me back an array with a list of objects in (like the above) the amount of objects in the array is based on the value I give it.
I came to the conclusion using the map function would be best, like so:
const myMap = new Map();
myMap.forEach((q, n) => {
});
I'm still learning. Honestly now sure how I'd go about creating this.