Created
November 3, 2016 20:22
-
-
Save dandorman/d46b1dc5f0929bd64ad918771966b68e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Write a function that returns the "leaves" of a nested map like the one below. | |
// You may assume values are either numbers, or another map. | |
{ | |
a: 1, | |
b: { | |
c: 2, | |
d: { | |
e: 3, | |
f: 4 | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment