2 ms·
// Instead of const format = (actual, expected) => { const variants = expected.join(‘, ‘); return `Value ${actual} is not expected here. Possibl
by commandlinefan 9y ago
// Instead of
const format = (actual, expected) => {
const variants = expected.join(‘, ‘);
return `Value ${actual} is not expected here. Possible
variants are: ${variants}`;
}
Well, shit, I thought _that_ was functional programming. Back to the drawing board for me, I guess.