123456789101112131415161718192021222324 |
- import arrayReduce from './_arrayReduce.js';
- import deburr from './deburr.js';
- import words from './words.js';
- var rsApos = "['\u2019]";
- var reApos = RegExp(rsApos, 'g');
- function createCompounder(callback) {
- return function(string) {
- return arrayReduce(words(deburr(string).replace(reApos, '')), callback, '');
- };
- }
- export default createCompounder;
|