If you want to map objects to something (in this case a property). I think Array.prototype.map is what you're looking for if you want to code functionally.

(fiddle)

If you want to support older browsers, that are not ES5 compliant you can shim it (there is a polyfill on the MDN page above). Another alternative would be to use underscorejs's pluck method:

var users = [
      {name: "Joe", age: 22},
      {name: "Kevin", age: 24},
      {name: "Peter", age: 21}
    ];
var result = _.pluck(users,'name').join(",")
Answer from Benjamin Gruenbaum on Stack Overflow
๐ŸŒ
MDN Web Docs
developer.mozilla.org โ€บ en-US โ€บ docs โ€บ Web โ€บ JavaScript โ€บ Reference โ€บ Global_Objects โ€บ Array โ€บ join
Array.prototype.join() - JavaScript | MDN
If the array has only one item, then that item will be returned without using the separator. const elements = ["Fire", "Air", "Water"]; console.log(elements.join()); // Expected output: "Fire,Air,Water" console.log(elements.join("")); // Expected output: "FireAirWater" console.log(elements.join("-")); // Expected output: "Fire-Air-Water" ... A string to separate each pair of adjacent elements of the array.
๐ŸŒ
TutorialsPoint
tutorialspoint.com โ€บ typescript โ€บ typescript_array_join.htm
TypeScript - Array join()
join() method joins all the elements of an array into a string. separator โˆ’ Specifies a string to separate each element of the array. If omitted, the array elements are separated with a comma.
๐ŸŒ
GeeksforGeeks
geeksforgeeks.org โ€บ typescript-array-join-method
TypeScript Array join() Method - GeeksforGeeks
July 12, 2024 - The Array.join() method in TypeScript is a built-in function used to join all the elements of an array into a single string.
Find elsewhere
๐ŸŒ
Codemzy
codemzy.com โ€บ blog โ€บ array-join-object-property
Using Array join() on an object property - Codemzy's Blog
May 30, 2023 - I've added a space after the comma by passing a string (", ") to .join() to use as the separator. Let's break that down so it's really clear what is happening at each stage. // the array of objects let names = [ { first: "Roger", last: "McRogerson" }, { first: "Peter", last: "Peterson" }, { first: "Jane", last: "Janeson" } ]; // create an array of the property values you need as strings let namesValues = names.map((name) => `${name.first} ${name.last}`); console.log(namesValues); // ["Roger McRogerson", "Peter Peterson", "Jane Janeson"] // join them to become a string with a comma separator let joinedNames = namesValues.join(", "); console.log(joinedNames); // "Roger McRogerson, Peter Peterson, Jane Janeson"
๐ŸŒ
Bobby Hadz
bobbyhadz.com โ€บ blog โ€บ typescript-merge-arrays
How to merge Arrays in TypeScript | bobbyhadz
Use the spread syntax to merge arrays in TypeScript. The spread syntax will unpack the values of the arrays into a new array.
๐ŸŒ
DEV Community
dev.to โ€บ fullstackchris โ€บ advanced-typescript-a-generic-function-to-merge-object-arrays-18ja
Advanced TypeScript: A Generic Function to Merge Object Arrays - DEV Community
December 9, 2021 - You could explicitly write key / value assignments for the keys that you want to update... or you can leverage JavaScript's built in Object.assign function and TypeScript's generic capabilities to only write one such function for all merging actions you need across your entire app! ๐Ÿ˜„ ยท For example, in ReduxPlate, I have two types, IFile, and IEditorSettings: ... IEditorSettings extends IFile and has just one additional property: isActive. When visitors click the "Generate!" button on the MVP page, the response from the server returns an array of objects of type IFile instead of IEditorSettings, since the server is not concerned with the isActive property.
๐ŸŒ
SPGuides
spguides.com โ€บ typescript-array-concatenation
TypeScript Merge Arrays | TypeScript Merge Two Arrays Of Objects
June 29, 2025 - To merge two arrays of objects in TypeScript, you can use the spread operator (...) for a simple concatenation. If you need to ensure uniqueness based on a specific property, use a Map to filter out duplicates.
๐ŸŒ
TutorialsPoint
tutorialspoint.com โ€บ typescript โ€บ typescript_array_concat.htm
TypeScript - Array concat()
concat() method returns a new array comprised of this array joined with two or more arrays. valueN โˆ’ Arrays and/or values to concatenate to the resulting array. Returns a new array.
๐ŸŒ
MDN Web Docs
developer.mozilla.org โ€บ en-US โ€บ docs โ€บ Web โ€บ JavaScript โ€บ Reference โ€บ Global_Objects โ€บ Array โ€บ concat
Array.prototype.concat() - JavaScript | MDN
The concat() method of Array instances is used to merge two or more arrays. This method does not change the existing arrays, but instead returns a new array.
๐ŸŒ
C# Corner
c-sharpcorner.com โ€บ UploadFile โ€บ 5089e0 โ€บ array-object-in-typescriptpart2
Array Object In TypeScript: Part 2
October 9, 2019 - When no parameter is passed, this method converts all the elements of the array to strings and concatenates them separated by commas. ... span.innerText = "Join Method \n First array Sample join as simple -> " + result + "\n" + "Second array sample join with plus (+) -> " + result1 + "\n" + "Third array sample join with (*) -> " + result2 + "\n"; ... In TypeScript the lastIndexOf() method searches for the last occurrence of a string value from the given characters.
๐ŸŒ
SPGuides
spguides.com โ€บ typescript-array-to-string-with-separator
How to Convert Typescript Array to String With Separator?
July 21, 2025 - Here we will see how to convert an array to a string with a separator, using join() in TypeScript. The join method in TypeScript is used to join all the items of an array into a string.
๐ŸŒ
W3Schools
w3schools.com โ€บ jsref โ€บ jsref_join.asp
JavaScript Array join() Method
HTML CSS JAVASCRIPT SQL PYTHON JAVA PHP HOW TO W3.CSS C C++ C# BOOTSTRAP REACT MYSQL JQUERY EXCEL XML DJANGO NUMPY PANDAS NODEJS DSA TYPESCRIPT ANGULAR ANGULARJS GIT POSTGRESQL MONGODB ASP AI R GO KOTLIN SWIFT SASS VUE GEN AI SCIPY AWS CYBERSECURITY DATA SCIENCE INTRO TO PROGRAMMING INTRO TO HTML & CSS BASH RUST ... Array[ ] Array( ) at() concat() constructor copyWithin() entries() every() fill() filter() find() findIndex() findLast() findLastIndex() flat() flatMap() forEach() from() includes() indexOf() isArray() join() keys() lastIndexOf() length map() of() pop() prototype push() reduce() reduceRight() rest (...) reverse() shift() slice() some() sort() splice() spread (...) toReversed() toSorted() toSpliced() toString() unshift() values() valueOf() with() JS Boolean
๐ŸŒ
Educative
educative.io โ€บ answers โ€บ how-to-join-two-or-more-arrays-in-typescript-using-concat
How to join two or more arrays in TypeScript using concat()
In TypeScript, we can join two or more arrays using the concat() method. We can join two, three, or more arrays using this method. ... The concat() method returns a new array with all the elements of the joined arrays.
๐ŸŒ
SamanthaMing
samanthaming.com โ€บ tidbits โ€บ 49-2-ways-to-merge-arrays
2 Ways to Merge Arrays in JavaScript | SamanthaMing.com
Here are 2 ways to combine your arrays and return a NEW array. Here are 2 ways to combine your arrays and return a NEW array. Let's look at how we do that using spread and concat.