New accessor function to retrieve a list of values by keys #28
Closed
Description
New accessor function to retrieve a list of values by keys.
Example:
const a = 1;
const b = 2;
const sum = a + b;
store.set({ a, b });
store.set({ sum });
const contents = store.getByKeys(['a', 'b', 'sum']);
console.log(contents);
// > [1, 2, 3]
...
const [a, b, sum] = store.getByKeys(['a', 'b', 'sum']);
console.log({ a, b, sum });
// > { a: 1, b: 2, sum: 3 }