--

Hey Rohan, thanks for reading and responding! You’d need to use .map to apply a function to each element of the array:

objectsArray = [{hello: 'world’}]

arrayOfStrings = objectsArray.map(object=>JSON.stringify(object))

Look up my recent article about how to use Set in JavaScript, and I discuss this method there. Cheers!

--

--

Dr. Derek Austin 🥳
Dr. Derek Austin 🥳

Written by Dr. Derek Austin 🥳

Hi, I'm Doctor Derek! I've been a professional web developer since 2005, and I love writing about programming with JavaScript, TypeScript, React, Next.js & Git.

Responses (1)