Jason Knight
Jun 21, 2022

--

Check this out:

for (let [key, value] of Object.entries(profile)) {

Use Object.entries to make [key, value] pairs in an array, for.of that array, and destructure the result.

--

--

Jason Knight
Jason Knight

Written by Jason Knight

Accessibility and Efficiency Consultant, Web Developer, Musician, and just general pain in the arse

Responses (2)