#javascript
Read more stories on Hashnode
Articles with this tag
Problem The encoding for Ó is way after ASCII characters so it puts Ólafur at the end ['Ólafur', 'A', 'N', 'O', 'P', 'Z'].toSorted() // [ 'A', 'N',...
You still gotta use a regex · const isValidUrl = url => { try { return Boolean(new URL(url)); } catch(e){ return...