createCompounder function

Function createCompounder(
  1. Function callback
)

Implementation

Function createCompounder(Function callback) {
  return (String string) {
    return arrayReduce(
        words(string: deburr(string).replaceAll(reApos, '')), callback, '');
  };
}