@mathias regarding http://String.prototype.at , why not just (myStr[pos] || '')? I'm just not sure what this really adds to the JS language.
@tracker1 Here’s why:
var myStr = '𝌆';
myStr[0] == '𝌆'; // `false`, not `true`
Replace 𝌆 with any other astral symbol.
-
-
@mathias So, let's fix myStr[0] ... :-) I think most people would rather have that work as expected. -
@tracker1 That cannot be done without breaking existing code. Hence the new methods. - 1 more reply
New conversation -
-
-
@mathias isNaN(new Date('1970-01-01')); //used to be true... sometimes it's worth it.Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.