mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-06 17:47:49 +00:00
Remove createCompounder.
This commit is contained in:
@@ -1,19 +0,0 @@
|
||||
import words from '../words.js'
|
||||
|
||||
/** Used to match apostrophes. */
|
||||
const reApos = /['\u2019]/g
|
||||
|
||||
/**
|
||||
* Creates a function like `camelCase`.
|
||||
*
|
||||
* @private
|
||||
* @param {Function} callback The function to combine each word.
|
||||
* @returns {Function} Returns the new compounder function.
|
||||
*/
|
||||
function createCompounder(callback) {
|
||||
return (string) => (
|
||||
words(`${ string }`.replace(reApos, '')).reduce(callback, '')
|
||||
)
|
||||
}
|
||||
|
||||
export default createCompounder
|
||||
Reference in New Issue
Block a user