79829091

Date: 2025-11-24 20:59:43
Score: 1.5
Natty:
Report link

I can find one index using db.SKU but not sure how to or the correct code to find all the indexes

Using this code:

const venueBySku = db
  .venueDB
  .values()
  .map((venue) => [venue.SKU, venue]);

const lookup = new Map(venueBySku);

const result = db.SKU
  .filter(sku => lookup.has(sku))
  .map(sku => lookup.get(sku));
  
console.log(result);

But how would I then add additional filters, i.e also check that the active and return round number.

Thanks.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Powl_London