Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Firebase object to array: { key: '' , value: ''}
let arr = Object.entries(obj).map(entry => Object.assign({value: entry[1]}, { key: entry[0] }));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment