src/collectors/number/Values.js
import Collector from '../Collector';
/**
* A collector that captures `values`
* - This is an array of all the values collected.
*/
export default class Values extends Collector {
constructor() {
super('values', []);
}
handleProcess(state, prev, val) {
const result = prev.slice(0);
result.push(val);
return result;
}
}