You can use Object.keys(obj) to get named indexes. This will return an array structure which you can use/customize further. A sample use to iterate over object values may look like this

var persons = { 
    john: { age: 23, year:2010},
    jack: { age: 22, year:2011},
    jenny: { age: 21, year:2012}
}

Getting an iterator

var resultArray = Object.keys(persons).map(function(personNamedIndex){
    let person = persons[personNamedIndex];
    // do something with person
    return person;
});

// you have resultArray having iterated objects 
Answer from Farooq Ahmed Khan on Stack Overflow
🌐
Bobby Hadz
bobbyhadz.com › blog › typescript-convert-object-to-array
How to Convert an Object to an Array in TypeScript | bobbyhadz
February 27, 2024 - Similarly to the keys method, the values are added to the array in the same order as that provided by a for...in loop. Use the Object.entries method to convert an object to an array of key-value pair arrays.
Discussions

Convert Object to Array Typescript
For now I have tried Object.keys(obj) but it returns each element in my object to array. More on stackoverflow.com
🌐 stackoverflow.com
Typescript convert object to Array - Stack Overflow
Communities for your favorite technologies. Explore all Collectives · Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work More on stackoverflow.com
🌐 stackoverflow.com
January 16, 2018
Typescript: Is there a simple way to convert an array of objects of one type to another - Stack Overflow
I have an array of Item that needs to be converted into an array of ViewItem. More on stackoverflow.com
🌐 stackoverflow.com
How to convert an array into an object?
Is there a way to use $.extend ... on the array items? 2014-11-13T00:21:43.883Z+00:00 ... Save this answer. ... Show activity on this post. Not many people here commented of Object.fromEntries, I really enjoy it, since it's cleaner and works easily with TypeScript, without bothering ... More on stackoverflow.com
🌐 stackoverflow.com
🌐
Python Guides
pythonguides.com › convert-an-object-to-an-array-in-typescript
How To Convert An Object To An Array In TypeScript?
February 8, 2025 - One of the most concise and efficient ways to convert an object to an array in TypeScript is by utilizing the Object.entries() method in combination with map().
🌐
SamanthaMing
samanthaming.com › tidbits › 76-converting-object-to-array
Converting Object to an Array | SamanthaMing.com
Finally with ES2017, it's official now! We have 3 variations to convert an Object to an Array in JavaScript
🌐
GeeksforGeeks
geeksforgeeks.org › typescript › how-to-convert-an-array-of-objects-into-object-in-typescript
How to Convert an Array of Objects into Object in TypeScript ? - GeeksforGeeks
July 23, 2025 - In this approach, we iterate over the array of objects using a for...of loop and merge each object's properties into a single object. Think of a for... of loop as a way to go through each item in list, one by one. When you are turning a list of small objects into one big object, this loop helps you handle each small object and gather all its details into the final big object. Example: Below mentioned example demonstrates a TypeScrip code that converts an array of objects not a single object where all keys and values are combined.
Find elsewhere
🌐
JavaScript Tutorial
javascripttutorial.net › home › convert an object to an array in javascript
Convert an Object to an Array in JavaScript
March 29, 2020 - To convert the enumerable string-keyed properties of an object to an array, you use the Object.entries() method.
🌐
Medium
frontendinterviewquestions.medium.com › convert-object-of-objects-to-array-of-objects-in-typescript-67b67cf37529
Convert object of objects to array of objects in TypeScript | by Pravin M | Medium
November 1, 2024 - To convert an object of objects to an array of objects, we can use the Object.values() method. This method returns an array of a given object's own enumerable property values. In this case, it will return an array of the inner objects.
🌐
GeeksforGeeks
geeksforgeeks.org › javascript › how-to-convert-an-object-into-array-of-objects-in-javascript
How to Convert an Object into Array of Objects in JavaScript? - GeeksforGeeks
July 23, 2025 - Object.values() method extracts the property values of an object and returns them as an array, converting the original object into an array of objects.
🌐
MDN Web Docs
developer.mozilla.org › en-US › docs › Web › JavaScript › Reference › Global_Objects › Array › from
Array.from() - JavaScript - MDN Web Docs
A new Array instance. ... To convert an ordinary object that's not iterable or array-like to an array (by enumerating its property keys, values, or both), use Object.keys(), Object.values(), or Object.entries().
🌐
Sling Academy
slingacademy.com › article › typescript-convert-object-array-vice-versa
TypeScript: How to Convert Object to Array and Vice-Versa - Sling Academy
Objects in TypeScript, much like a river, are a constant flow of key-value pairs, where each key is a unique identifier of its corresponding value. However, unlike the mighty Mississippi, objects cannot be traversed with the simplicity of a steamboat paddlewheel. In order to navigate through them, we must gather their contents into a vessel more akin to our rowboat—an array.
🌐
DEV Community
dev.to › awaisalwaisy › 7-ways-to-convert-objects-into-array-in-javascript-35m4
7 ways to convert Objects into Array in JavaScript - DEV Community
February 12, 2023 - The for...in loop is a traditional looping method in JavaScript to iterate over the properties (keys) of an object. It can be used to convert an object into an array by extracting its values and forming a new array with them.
🌐
GeeksforGeeks
geeksforgeeks.org › how-to-convert-an-object-to-an-array-of-key-value-pairs-in-javascript
JavaScript- Convert an Object to JS Array | GeeksforGeeks
November 25, 2024 - In JavaScript, a for...in loop iterates over an object's keys. By checking if each key is a direct property using hasOwnProperty, key-value pairs are pushed into an array. This approach efficiently converts an object to an array of key-value pairs.
🌐
Index.dev
index.dev › blog › typescript-cast-to-array-guide
How to Cast to an Array in TypeScript: A Quick Guide
December 30, 2024 - Casting to an array in TypeScript may be a useful technique for working with dynamic data. To accomplish it securely, remember to apply type guards, utilize ReadonlyArray to ensure immutability, and avoid casting to arrays without first checking the data type.
🌐
Scaler
scaler.com › home › topics › convert an object to an array in javascript
Convert an Object to an Array in JavaScript - Scaler Topics
October 17, 2023 - Above, we have the myObj object and an empty array of keys. To convert the myObj object keys into an array we are looping over the myObj using the for...in loop, and in each iteration pushing the individual properties key in the keys array.
🌐
Medium
medium.com › chrisburgin › javascript-converting-an-object-to-an-array-94b030a1604c
Javascript, Converting an Object to an Array of Objects. | by Chris Burgin | Spark | Medium
December 16, 2017 - This second method is quite well supported. Check out both Object Values and Object Keys MDN documentation to learn where you may have issues with support and for more info on these features.