{"ScriptPreparationCode":"const data = [\r\n {\r\n \u0022FACT_CD\u0022: \u0022\u0022,\r\n \u0022WH_CD\u0022: \u0022\u0022,\r\n \u0022LOC_TP\u0022: \u0022\u0022,\r\n \u0022LOC_NM\u0022: \u0022\u0022,\r\n \u0022RACK_TP\u0022: \u0022\u0022,\r\n \u0022RACK_DESC\u0022: \u0022\u0022,\r\n \u0022UNIT_TP\u0022: \u0022\u0022,\r\n \u0022UNIT_DESC\u0022: \u0022\u0022,\r\n \u0022SAP_TP\u0022: \u0022\u0022,\r\n \u0022SAP_NM\u0022: \u0022\u0022,\r\n \u0022USE_CC\u0022: \u0022\u0022\r\n }\r\n]","TestCases":[{"Name":"Object.keys \u002B map","Code":"Object.keys(data[0]).map(prop =\u003E (\r\n { wch: Math.max(prop.toString().length, ...data.map(obj =\u003E obj[prop] ? obj[prop].toString().length : 0)) }\r\n));","IsDeferred":false},{"Name":"for...in \u002B push","Code":"const columnWidths = [];\r\nfor (const prop in data[0]) {\r\n const maxWidth = Math.max(prop.toString().length, ...data.map(obj =\u003E obj[prop] ? obj[prop].toString().length : 0));\r\n columnWidths.push({ wch: maxWidth });\r\n}","IsDeferred":false}]}