π Spookyberb π β 09-11 Nov 17
How could I iterate over an object, and convert any
string
prop thats falsy to a -
?4 Replies
Object.entries
+ loopObject.entris + map?
I want it to a new variable, thats the cleanest way right?
Can be
You have to call
Object.fromEntries
afterwards to transform it into object againThis thread hasnβt had any activity in 12 hours, so itβs now locked.
Threads are closed automatically after 12 hours. If you have a followup question, you may want to reply to this thread so other members know they're related. https://discord.com/channels/102860784329052160/565213527673929729/1042728665479385108