3 ms·
Nit, the x is a copy so it won't change the value of x outside the function. So I would rewrite ad const foo = x => x !== null ? x + 2 : null
by darepublic 6y ago
Nit, the x is a copy so it won't change the value of x outside the function. So I would rewrite ad
const foo = x => x !== null ? x + 2 : null