const obj = Object.fromEntries(
Array.from({ length: 1000 }, (_, i) => [
`item${i}`,
{ number: Math.floor(Math.random() * 100), available: Math.random() < 0.5 },
]),
)
const map = new Map(Object.entries(obj))
let res1, res2, res3
res1 = obj[Math.floor(Math.random() * 100)]
res2 = map.get(Math.floor(Math.random() * 100))
console.log(res1, res2)