{"ScriptPreparationCode":"var codeFields = [\r\n {value: \u00275\u0027},\r\n {value: \u00273\u0027},\r\n {value: \u00271\u0027}\r\n]\r\n\r\nfunction isNumber(obj) {\r\n return obj !== undefined \u0026\u0026 typeof (obj) === \u0027number\u0027 \u0026\u0026 !isNaN(obj)\r\n }","TestCases":[{"Name":"reduce","Code":"const enteredValue = codeFields.reduce((acc, el) =\u003E\r\n acc \u002B (isNumber(parseInt(el.value, 10)) ? el.value : \u0027\u0027), \u0027\u0027);","IsDeferred":false},{"Name":"map","Code":"const enteredValue2 = codeFields.map(el =\u003E el.value).join(\u0027\u0027).replace(/\\s/g, \u0027\u0027);","IsDeferred":false}]}