Task: Fix the "data.map is not a function" Error in JSON Processing
Task: Fix the "data.map is not a function" Error in JSON Processing: a task in Terminal-Lego-15k (Harbor dataset). You are given a Node.js script that reads a JSON file containing product data and processes it using the Array.map() method. However, the script throws a runtime error:
The task
You are given a Node.js script that reads a JSON file containing product data and processes it using the `Array.map()` method. However, the script throws a runtime error:
Part of PrimeIntellect/Terminal-Lego-15k.