{"ScriptPreparationCode":"const colors = [\r\n \u0027from-indigo-500\u0027,\r\n \u0027from-yellow-500\u0027,\r\n \u0027from-purple-500\u0027,\r\n \u0027from-red-500\u0027,\r\n \u0027from-green-500\u0027,\r\n \u0027from-blue-500\u0027,\r\n \u0027from-pink-500\u0027,\r\n];","TestCases":[{"Name":"lodash shuffle","Code":"const colors = [\r\n \u0027from-indigo-500\u0027,\r\n \u0027from-yellow-500\u0027,\r\n \u0027from-purple-500\u0027,\r\n \u0027from-red-500\u0027,\r\n \u0027from-green-500\u0027,\r\n \u0027from-blue-500\u0027,\r\n \u0027from-pink-500\u0027,\r\n];\r\n_.shuffle(colors)","IsDeferred":false},{"Name":"js native shuffle","Code":"const colors = [\r\n \u0027from-indigo-500\u0027,\r\n \u0027from-yellow-500\u0027,\r\n \u0027from-purple-500\u0027,\r\n \u0027from-red-500\u0027,\r\n \u0027from-green-500\u0027,\r\n \u0027from-blue-500\u0027,\r\n \u0027from-pink-500\u0027,\r\n];\r\nconst shuffleColor = (array) =\u003E {\r\n const length = array === null ? 0 : array.length;\r\n return length ? array[Math.floor(Math.random() * length)] : undefined;\r\n};","IsDeferred":false}]}