{"ScriptPreparationCode":null,"TestCases":[{"Name":"test and assign individual","Code":"const pixelArray = [5,[1,6],9,[1,8],7,[1,3],4,[1,3],6,[1,2],6,[1,2],6,[1,2],6,[1,2],6,[1,2],6,[1,2],6,[1,2],6,[1,2],6,[1,2],6,[1,2],6,[1,10],6,[1,10],6,[1,2],6,[1,2],6,[1,2],6,[1,2],6,[1,2],6,[1,2],6,[1,2],6,[1,2],35]\r\npixelArray.forEach(item=\u003E{\r\n let color, count\r\n if (Array.isArray(item)) {\r\n color = item[0]\r\n count = item[1]\r\n } else {\r\n color = 0\r\n count = item\r\n }\r\n color \u002B= count\r\n /* code */\r\n})","IsDeferred":false},{"Name":"destructure","Code":"const pixelArray = [5,[1,6],9,[1,8],7,[1,3],4,[1,3],6,[1,2],6,[1,2],6,[1,2],6,[1,2],6,[1,2],6,[1,2],6,[1,2],6,[1,2],6,[1,2],6,[1,2],6,[1,10],6,[1,10],6,[1,2],6,[1,2],6,[1,2],6,[1,2],6,[1,2],6,[1,2],6,[1,2],6,[1,2],35]\r\npixelArray.forEach(item=\u003E{\r\n let [color, count] = Array.isArray(item) ? item : [0, item]\r\n color \u002B= count\r\n /* code */\r\n})","IsDeferred":false}]}