{"ScriptPreparationCode":null,"TestCases":[{"Name":"Test reduce","Code":"const state = { lorem: { test: \u0027ok\u0027, hidden: true }, ipsum: { test: \u0027ok\u0027 } }\r\nconst filtered = Object.entries(state).reduce(\r\n (h, [name, value]) =\u003E (value.hidden ? h : { ...h, [name]: value }),\r\n {}\r\n )","IsDeferred":false},{"Name":"Test entries","Code":"const state = { lorem: { test: \u0027ok\u0027, hidden: true }, ipsum: { test: \u0027ok\u0027 } }\r\nconst filtered = Object.entries(state).filter(([key, value]) =\u003E !value.hidden)\r\nconst rest = Object.fromEntries(filtered)","IsDeferred":false},{"Name":"Test for in ","Code":"const state = { lorem: { test: \u0027ok\u0027, hidden: true }, ipsum: { test: \u0027ok\u0027 } }\r\nlet result = {}\r\nfor (const prop in state) { if (!state[prop].hidden) { result = { ...result, [prop]: state[prop] } } }","IsDeferred":false}]}