{"ScriptPreparationCode":"var sampleObject = {\r\n\te1: \u0027hello world\u0027,\r\n\te2: undefined,\r\n}","TestCases":[{"Name":"Lodash with _.omitBy \u0026 _.isUndefined","Code":"_.omitBy(sampleObject, _.isUndefined)","IsDeferred":false},{"Name":"Native","Code":"for (const [key, value] of Object.entries(sampleObject)) {\r\n if (typeof value === \u0027undefined\u0027) {\r\n \tdelete sampleObject[key]\r\n }\r\n}","IsDeferred":false}]}