JSFiddle - React, Tailwind, and code Playground

by Zacc206

JavaScript

const fooObject = {}

for(let i = 0; i < 1000; i++){
	fooObject[`${i}`] = i;
}

for (let i = 0; i < 1000; i++) {
	const arr = [];
	Object.entries(fooObject).forEach(([key, value]) => {
  	arr.push(`${key} ${value}`);
  })
  console.log(arr);
}