{"ScriptPreparationCode":null,"TestCases":[{"Name":"regex replace all","Code":"const term1 = \u0027The quick brown fox The quick brown fox\u0027;\r\nconst regex = /[ ]{2,}/gi;\r\nconst term2 = term1.replaceAll(regex, \u0022 \u0022);","IsDeferred":false},{"Name":"split filter join","Code":"const term1 = \u0027The quick brown fox The quick brown fox\u0027;\r\nconst term2 = term1.split(\u0027 \u0027).filter(el =\u003E el.length \u003E 1).join(\u0027 \u0027);","IsDeferred":false}]}