Untitled

Run Settings
LanguageJavaScript
Language Version
Run Command
const dataArr = [[{ selectionAttribute:{ category_attribute_id: 9170, id: 2259325, name: "Krem" }},{ selectionAttribute:{ category_attribute_id: 9170, id: 2259325, name: "Krem" }}],[{ selectionAttribute:{ category_attribute_id: 9170, id: 2259325, name: "Krem" }},{ selectionAttribute:{ category_attribute_id: 9170, id: 2259325, name: "Krem" }}]]; var hasDupsObjects = function(array) { return array.map(function(value) { return value.selectionAttribute.category_attribute_id + value.selectionAttribute.id + value.selectionAttribute.name }).some(function(value, index, array) { return array.indexOf(value) !== array.lastIndexOf(value); }) } console.log(hasDupsObjects(dataArr));
Editor Settings
Theme
Key bindings
Full width
Lines