{"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 blackOne: undefined,\r\n blackTwo: undefined,\r\n blackThree: undefined,\r\n blackFour: undefined,\r\n blackFive: undefined,\r\n blackSix: undefined,\r\n blackSeven: undefined,\r\n}","TestCases":[{"Name":"Plain Js","Code":"const isNullable = (obj) =\u003E obj == undefined || obj == null || (Array.isArray(obj) \u0026\u0026 obj.length \u003C 1)\r\n\r\nconst skipNullable = (obj) =\u003E {\r\n const temp = {}\r\n\r\n Object.keys(obj).forEach((key) =\u003E {\r\n if (isNullable(obj[key])) return\r\n temp[key] = obj[key]\r\n })\r\n\r\n return temp\r\n}\r\nskipNullable(basePalette)","IsDeferred":false},{"Name":"LoDash OmitBy","Code":"const isNullable = (v) =\u003E v == undefined || v == null || (Array.isArray(v) \u0026\u0026 v.length \u003C 1)\r\n_.omitBy(basePalette, isNullable )","IsDeferred":false}]}