{"ScriptPreparationCode":"var basePalette = {\r\n black: undefined,\r\n green: null,\r\n orange: \u0027orange\u0027,\r\n red: null,\r\n darkRed: \u0027darkRed\u0027,\r\n blue: \u0027blue\u0027,\r\n lightBlue: \u0027lightBlue\u0027,\r\n navy: \u0027navy\u0027\r\n}","TestCases":[{"Name":"Plain Js","Code":"const isNull = a =\u003E !Boolean(a)\r\n\r\nconst omitBy = (obj, check) =\u003E {\r\n obj = { ...obj }\r\n Object.entries(obj).forEach(([key, value]) =\u003E check(value) \u0026\u0026 delete obj[key])\r\n return obj\r\n}\r\nomitBy(basePalette, isNull)","IsDeferred":false},{"Name":"LoDash OmitBy","Code":"_.omitBy(basePalette, _.isNullable )","IsDeferred":false}]}