3 ms·
How easy is it test a function add(a, b) that just adds a and b and returns the result? Or how bout testing: function divide(a, b, fn) { let [_a, _b] =
by postalrat 6y ago
How easy is it test a function add(a, b) that just adds a and b and returns the result?
Or how bout testing:
function divide(a, b, fn) {
let [_a, _b] = fn(a, b);
return _a / _b;
}