script src='https://cdn.jsdelivr.net/npm/
[email protected]
/lodash.min.js'>
{"ScriptPreparationCode":null,"TestCases":[{"Name":"lodash.uniq","Code":"const arr = [{id: 1}, {id: 2}, {id: 3}, {id: 1}, {id: 2}, {id: 3}, {id: 1}, {id: 2}, {id: 3}];\r\nreturn _.uniqBy(arr, el =\u003E el.id);","IsDeferred":false},{"Name":"Map","Code":"const arr = [{id: 1}, {id: 2}, {id: 3}, {id: 1}, {id: 2}, {id: 3}, {id: 1}, {id: 2}, {id: 3}];\r\nreturn (new Map(arr.map(el =\u003E [el.id, el]))).values","IsDeferred":false}]}