Returns the first value in data that matches a key from keys.
// Iterate, yielding: `a.b.c.d`, `b.c.d`, `c.d`, `d` constkeys = Text.segmentsFromEnd(`a.b.c.d`); // Gets first value that matches a key (starting from most precise) constvalue = getFromKeys(data, keys);
Returns the first value in
data
that matches a key fromkeys
.