const fp = require('lodash/fp')
const assert = require('assert')
const words = fp.words.convert({ cap: false })
assert.equal(typeof words, 'function') // true as expected
// here I'd expect `words` to return a function that is expected the
// remaining string argument
const splitByX = words(/x/)
assert.equal(typeof splitByX, 'function')