It would be convenient if we can use handlebars to use a list/arrays as a map. Retrieving values by index works fine, but it still feels a little brittle.
This could work like retrieving key or value information like a dictionary object in C#, or something like path.to.array.(key)’ would yield value, if the array looks like [{“key1”: “val1"}, {“key2”: “val2"}].
This way, each array can be queried through a value or key as opposed to position in the array.
It would be convenient if we can use handlebars to use a list/arrays as a map. Retrieving values by index works fine, but it still feels a little brittle.
This could work like retrieving key or value information like a dictionary object in C#, or something like path.to.array.(key)’ would yield value, if the array looks like [{“key1”: “val1"}, {“key2”: “val2"}].
This way, each array can be queried through a value or key as opposed to position in the array.