const compose = (...fns) => fns.reduce((f, g) => (...args) => f(g(...args)));
const extractArrVals = (obj, key) => {
/////YOUR FUNCTION
};
const dedupe = (data) => {
/////YOUR FUNCTION
}
const filterOutNonUsable = (data) => {
/////YOUR FUNCTION
}
// transformer or whatever it's name
const transformer = compose(
filterOutNonUsable,
dedupe,
extractArrVals
);
transformer(data.locks.entries, 'reseller')