79822696

Date: 2025-11-17 19:29:16
Score: 1
Natty:
Report link

Why not map all entries and build an object?

object = Object.fromEntries(data.map(({ key, value }) => [key, value]));
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Starts with a question (0.5): Why not
  • High reputation (-2):
Posted by: Nina Scholz