4 ms·
It's such a bad take. I need to check if a string is a dash followed by two numbers. What's better, /^-\d{2}$/ or writing 10 lines of bespoke code to parse it?
by rjh29 4y ago
It's such a bad take. I need to check if a string is a dash followed by two numbers. What's better, /^-\d{2}$/ or writing 10 lines of bespoke code to parse it?