Advanced Use
Some Tips for more advanced use
Last updated
ds.store.locations.data// Get count of locations in each state
let result = new Map();
ds.store.locations.data.forEach(({ state }) => {
result.set(state, (result.get(state) || 0) + 1); // increment state count
});