4 ms·
I understand the point, and also wish typescript were a bit stricter about this, but the main reason I still do this sometimes is for the filter function when t
by presentation 6y ago
I understand the point, and also wish typescript were a bit stricter about this, but the main reason I still do this sometimes is for the filter function when the function I pass in is a type guard - wrapping it in an anonymous function requires also duplicating the type guard logic, which is enough repetition for me to sidestep it. That said it’s easy enough to just disable the ESLint rule that enforced this limitation for those lines.