{"ScriptPreparationCode":"function stray_happy(numbers) {\r\n numbers = numbers.sort((a, b) =\u003E a - b);\r\n if (numbers[0] !== numbers[1]) {\r\n return numbers[0];\r\n }\r\n else {\r\n return numbers[numbers.length - 1];\r\n }\r\n}\r\n\r\n\r\nfunction stray_heretic(numbers) {\r\n return numbers.find(i =\u003E numbers.filter(j =\u003E j === i).length === 1);\r\n}\r\n\r\n\r\nfunction stray_shaye(numbers) {\r\n return \u002Bnumbers.sort((a, b) =\u003E a - b)\r\n \t.filter((n,i,a) =\u003E (i === 0 \u0026\u0026 a[0] !==a[1]) || (i === a.length-1 \u0026\u0026 a[a.length-1] !== a[a.length-2]));\r\n}\r\n\r\nfunction stray_user(a) {\r\n return a.find(v =\u003E a[0] != a[1] ? v != a[2] : v != a[0])\r\n}\r\n\r\nvar numbers = [1,1,1,1,1,1,1,2,1,1,1,1,1,1,1]\r\n\r\n","TestCases":[{"Name":"stray_happy","Code":"var n = stray_happy(numbers)","IsDeferred":false},{"Name":"stray_heretic","Code":"var n = stray_heretic(numbers)","IsDeferred":false},{"Name":"stray_shaye","Code":"var n = stray_shaye(numbers)","IsDeferred":false},{"Name":"stray_user","Code":"var n = stray_user(numbers)","IsDeferred":false}]}