Posts by Arthur Ronconi • 161 points
2 posts
-
3
votes9
answers27569
viewsA: How do I read Javascript URL values (Querystring)?
The previously presented functions perform poorly. I implemented two functions for this which are respectively 35% and 120% faster, they are part of the library Ideal.js: // URL:…
-
3
votes4
answers6781
viewsA: Why does my CNPJ validation pass this invalid value?
There is a more compact function to validate CNPJ: function is_cnpj(c) { var b = [6, 5, 4, 3, 2, 9, 8, 7, 6, 5, 4, 3, 2]; if ((c = c.replace(/[^\d]/g, "")).length != 14) return false; if…