{"ScriptPreparationCode":"var str = \u0027style\u0027;\r\nvar obj = {\r\n \t \u0027style-2\u0027: true,\r\n \t \u0027style-3\u0027: false,\r\n \t \u0027style-4\u0027: true,\r\n}\r\nvar arr = [\u0027style-5\u0027, \u0027style-6\u0027]","TestCases":[{"Name":"classnames","Code":"const result = window.classNames(str, obj, arr, \u0027test classname\u0027)","IsDeferred":false},{"Name":"clsx","Code":"const result = window.clsx(str, obj, arr, \u0027test classname\u0027)","IsDeferred":false},{"Name":"Template Literals ","Code":"const reduced = (o) =\u003E Object.entries(o).reduce((acc, cur) =\u003E { if (cur[1]) acc.push(cur[0]); return acc; }, []).join(\u0027 \u0027);\r\nconst result = \u0060${str} ${reduced(obj)} ${arr.join(\u0027 \u0027)} test classname\u0060","IsDeferred":false}]}