JavaScript / nodejs [JavaScript] Create array of unique property values from an array of objects February 5, 2024 February 5, 2024 array, JavaScript, new Set, object, set, unique const a = [ {'id': 1, 'name': 'Max'}, {'id': 2, 'name': 'Tom'}, {'id': 3, 'name': 'Max'}, {'id': 4, 'name': 'Max'} ]; let r = [...new Set(a.map(u => u.name))] // result ["Max", "Tom"] [SuccessFactors] Display technical field names [PDF.js] Get PDF Viewer when it’s available in DOM and fully initialized Leave a Reply Cancel replyYour email address will not be published. Required fields are marked *CommentName* Email* Website Save my name, email, and site URL in my browser for next time I post a comment.