{"ScriptPreparationCode":"const testObject = {\r\n a: \u0027a\u0027,\r\n b: undefined,\r\n c: \u0027c\u0027,\r\n d: undefined,\r\n e: undefined\r\n}","TestCases":[{"Name":"filter object entries","Code":"const testObject = {\r\n a: \u0027a\u0027,\r\n b: undefined,\r\n c: \u0027c\u0027,\r\n d: undefined,\r\n e: undefined\r\n}\r\nObject.fromEntries(Object.entries(testObject).filter(([_, value]) =\u003E value !== undefined))","IsDeferred":false},{"Name":"for of Object.entries","Code":"const testObject = {\r\n a: \u0027a\u0027,\r\n b: undefined,\r\n c: \u0027c\u0027,\r\n d: undefined,\r\n e: undefined\r\n}\r\nconst testObjectCopy = {...testObject}\r\nfor (const [prop, value] of Object.entries(testObjectCopy))\r\n if (value === undefined)\r\n delete testObjectCopy[prop]\r\n","IsDeferred":false},{"Name":"for in","Code":"const testObject = {\r\n a: \u0027a\u0027,\r\n b: undefined,\r\n c: \u0027c\u0027,\r\n d: undefined,\r\n e: undefined\r\n} \r\nconst testObjectCopy = {...testObject}\r\nfor (const prop in testObjectCopy)\r\n if (testObjectCopy.hasOwnProperty(prop) \u0026\u0026 testObjectCopy[prop] === undefined)\r\n delete testObjectCopy[prop]","IsDeferred":false}]}