lodash.fp.words bug?

node v8.17.0
version: 1.0.0
endpointsharetweet
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')
Loading…

no comments

    sign in to comment