{"ScriptPreparationCode":"var arr = [];\r\nfor(var i = 0; i \u003C 5000; i\u002B\u002B) {\r\n\tarr[i] = i;\r\n}\r\nvar setInit = [];\r\nfor(var i = 0; i \u003C 5; i\u002B\u002B) {\r\n\tsetInit[i] = i\u002B10;\r\n}","TestCases":[{"Name":"IfElse","Code":"var flt;\r\nif (setInit.length) {\r\n\tflt = arr.filter(v =\u003E setInit.some(fv =\u003E fv === v));\r\n} else {\r\n\tflt = arr.slice();\r\n}","IsDeferred":false},{"Name":"Logical AND with OR","Code":"var flt = (setInit.length \u0026\u0026 arr.filter(v =\u003E setInit.some(fv =\u003E fv === v))) || arr.slice();","IsDeferred":false}]}