Skip to content

Instantly share code, notes, and snippets.

View joconor's full-sized avatar

Jay O'Conor joconor

View GitHub Profile
function flattenDictionary(dict) {
if (!dict) {
return {}
}
const keys = {}
flattenH(dict)
return keys
function flattenH(obj, prefix) {
Object.keys(obj)