UNPKG

ramda-extension

Version:

Helpful functions built on top of the mighty Ramda

21 lines (20 loc) 504 B
import { o } from 'ramda'; import toPascalCase from './toPascalCase'; import toLowerFirst from './toLowerFirst'; /** * Converts string into camelCase. * * @func * @category String * * @example * * R_.toCamelCase('hello-world') // 'helloWorld' * R_.toCamelCase('hello- world') // 'helloWorld' * R_.toCamelCase(' hello-/ world/ ') // 'helloWorld' * * @sig String -> String * */ var toCamelCase = /*#__PURE__*/o(toLowerFirst, toPascalCase); export default toCamelCase;