Hello I would like to be able to pass keys in the form of "Key.Subkey.Subsubkey" to create an entry in the form of
Key: { Subkey: { Subsubkey: } }
Is there a way to do that? Of course the delimiter between "Key" and "Subkey" need not to be '.' Regards
You can write a small function which traverses the hierarchy, calling isMember() followed by get() at each level.
isMember()
get()
It's not a useful method to add because there are too many potential variations.
Log in to post a comment.
Hello
I would like to be able to pass keys in the form of
"Key.Subkey.Subsubkey"
to create an entry in the form of
Key: {
Subkey: {
Subsubkey:
}
}
Is there a way to do that? Of course the delimiter between "Key" and
"Subkey" need not to be '.'
Regards
You can write a small function which traverses the hierarchy, calling
isMember()followed byget()at each level.It's not a useful method to add because there are too many potential variations.
Last edit: Christopher Dunn 2014-07-05