This is a read-only archive of the Framer Community on Facebook.

What is Framer? Join the Community
Return to index
Maximilian Bredow
Posted Dec 12 - Read on Facebook

I have an array of objects (imported from Firebase) that I want to format (transpose? reduce?) to the format shown in attached screenshot. Can someone help?

I looked at https://coffeescript-cookbook.github.io/chapters/arrays/reducing-arrays but wasn't able to do it myself

2 Comments

Joseph Reni

I'm not sure it's the best way, but you could do something like:

for profile of profiles[0]
____profiles[0][profile] = profiles[0][profile].rating

print profiles

Amrit Mazumder

pretty inelegant, but it works —> https://framer.cloud/dsXpv

Read the entire post on Facebook