I used Istanbul to measure coverage of the test suite and I believe that I found a minor coverage gap.
It looks like the condition of the following if statement never holds.
if (typeof mapper !== 'function') {
throw new TypeError('Mapper function is required');
}
It is a corner case and probably unlikely to happen, but it may be worth including a test just to make sure this property will hold in future. I include a suggestion of test below, which passes when I run locally.
I used Istanbul to measure coverage of the test suite and I believe that I found a minor coverage gap.
It looks like the condition of the following if statement never holds.
It is a corner case and probably unlikely to happen, but it may be worth including a test just to make sure this property will hold in future. I include a suggestion of test below, which passes when I run locally.