When making a multi-facet kind, it's common to pick one facet to expose. E.g.,
const makeFoo = (a, b, c, d) => makeFooBase(a, b, c, d).self;
This helper reduces the duplication:
const makeFoo = pickFacet(makeFooBase, 'self');
Rest
When making a multi-facet kind, it's common to pick one facet to expose. E.g.,
This helper reduces the duplication: