{"ScriptPreparationCode":"var fp = _.noConflict();\r\n\r\nvar context = {\r\n eventline: { hello: \u0027you\u0027 },\r\n config: \u0027sadas\u0027,\r\n};\r\nvar isString = fp.isString;\r\nvar isArray = fp.isArray;\r\n\r\nvar getDefaultProps = fp.flow(\r\n fp.filter(\r\n _.overEvery([\r\n isString,\r\n function (prop) {\r\n return _.hasIn(context, prop);\r\n },\r\n ]),\r\n ),\r\n fp.reduce(function (acc, i) {\r\n acc[i] = context[i];\r\n return acc;\r\n }, {}),\r\n);\r\n\r\nvar testNative = function(param) {\r\n param.filter(myVar =\u003E (typeof myVar === \u0027string\u0027 || myVar instanceof String) \u0026\u0026 context[myVar]).reduce(function (acc, i) {\r\n acc[i] = context[i];\r\n return acc;\r\n }, {}) \r\n}\r\n\r\nvar testNativeDash = function(param) {\r\n param.filter(myVar =\u003E _.isString(myVar) \u0026\u0026 _.hasIn(context, myVar)).reduce(function (acc, i) {\r\n acc[i] = context[i];\r\n return acc;\r\n }, {}) \r\n}\r\n\r\nvar isStr = myVar =\u003E typeof myVar === \u0027string\u0027 || myVar instanceof String;\r\nvar isWithinObj = myVar =\u003E !!context[myVar];\r\nvar reducer = function (acc, i) {\r\n acc[i] = context[i];\r\n return acc;\r\n }\r\nvar testNativeWithFunc = function(param) {\r\n param.filter(myVar =\u003E isStr(myVar) \u0026\u0026 isWithinObj(myVar)).reduce(reducer, {}) \r\n}\r\n \r\n \r\nvar test1 = [\u0027eventline\u0027]","TestCases":[{"Name":"lodash fp","Code":"getDefaultProps(test1);","IsDeferred":false},{"Name":"native","Code":" testNative(test1)","IsDeferred":false},{"Name":"native with lodash","Code":"testNativeDash(test1)","IsDeferred":false},{"Name":"native with named funcs","Code":"testNativeWithFunc(test1)","IsDeferred":false}]}