{"ScriptPreparationCode":"var data = [{\r\n \u0027id\u0027: 1,\r\n \u0027value\u0027: \u0027one\u0027\r\n}, {\r\n \u0027id\u0027: 2,\r\n \u0027value\u0027: \u0027two\u0027\r\n}, {\r\n \u0027id\u0027: 3,\r\n \u0027value\u0027: \u0027three\u0027\r\n}, {\r\n \u0027id\u0027: 4,\r\n \u0027value\u0027: \u0027four\u0027\r\n}, {\r\n \u0027id\u0027: 4,\r\n \u0027value\u0027: \u0027four\u0027\r\n}, {\r\n \u0027id\u0027: 5,\r\n \u0027value\u0027: \u0027five\u0027\r\n}];\r\n\r\nfunction cleanSelectedDataForUniqueness(selectedData) {\r\n const _selectedDataSet = new Set(selectedData.map((el) =\u003E JSON.stringify(el)));\r\n return Array.from(_selectedDataSet).map((el) =\u003E JSON.parse(el));\r\n};","TestCases":[{"Name":"my uniquesness","Code":"cleanSelectedDataForUniqueness(data);","IsDeferred":false},{"Name":"lodash ","Code":"lodash.uniqWith(data,lodash.isEqual);","IsDeferred":false}]}