Here is some code I have:
// "iterable" is a Map
iterable.forEach((definition, schemaKey) => {
let keyToGet = schemaKey.split('.');
});
keyToGet
contains a list of nested keys I want to get in sorted sequence. That is, if I have a user object,
{
profile: {
name: { full: "Cat Man" }
}
}
And I want to access profile.name.full
using ['profile', 'name', full]
. Is this possible to get the value using this list of values?